mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Improve metadata for diskusage tests
This commit is contained in:
parent
97f9d3ea37
commit
51e7a56522
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ class SystemResourcesDiagnoser(Diagnoser):
|
||||||
free_abs_GB = usage.free / (1024 ** 3)
|
free_abs_GB = usage.free / (1024 ** 3)
|
||||||
free_percent = 100 - usage.percent
|
free_percent = 100 - usage.percent
|
||||||
|
|
||||||
item = dict(meta={"mountpoint": mountpoint, "device": device})
|
item = dict(meta={"test": "diskusage", "mountpoint": mountpoint})
|
||||||
infos = {"mountpoint": mountpoint, "device": device, "free_abs_GB": free_abs_GB, "free_percent": free_percent}
|
infos = {"mountpoint": mountpoint, "device": device, "free_abs_GB": free_abs_GB, "free_percent": free_percent}
|
||||||
if free_abs_GB < 1 or free_percent < 5:
|
if free_abs_GB < 1 or free_percent < 5:
|
||||||
item["status"] = "ERROR"
|
item["status"] = "ERROR"
|
||||||
|
|
Loading…
Add table
Reference in a new issue