Hmf, comparison return a warning if swap is exactly 512..

This commit is contained in:
Alexandre Aubin 2020-04-30 02:40:22 +02:00
parent 4f8aa5e338
commit aaccb54775

View file

@ -47,7 +47,7 @@ class SystemResourcesDiagnoser(Diagnoser):
if swap.total <= 1 * MB: if swap.total <= 1 * MB:
item["status"] = "ERROR" item["status"] = "ERROR"
item["summary"] = "diagnosis_swap_none" item["summary"] = "diagnosis_swap_none"
elif swap.total <= 512 * MB: elif swap.total < 500 * MB:
item["status"] = "WARNING" item["status"] = "WARNING"
item["summary"] = "diagnosis_swap_notsomuch" item["summary"] = "diagnosis_swap_notsomuch"
else: else: