mirror of
https://github.com/mirage/qubes-mirage-firewall.git
synced 2025-01-15 17:17:08 -05:00
remove unneeded logs: be silent if the GC is enough
This commit is contained in:
parent
eb4d0fc371
commit
06b9a88331
@ -63,7 +63,8 @@ let status () =
|
|||||||
Gc.full_major ();
|
Gc.full_major ();
|
||||||
Xen_os.Memory.trim ();
|
Xen_os.Memory.trim ();
|
||||||
let stats = Xen_os.Memory.quick_stat () in
|
let stats = Xen_os.Memory.quick_stat () in
|
||||||
report_mem_usage stats;
|
if fraction_free stats < 0.6 then begin
|
||||||
if fraction_free stats < 0.6 then `Memory_critical
|
report_mem_usage stats;
|
||||||
else `Ok
|
`Memory_critical
|
||||||
|
end else `Ok
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user