diff --git a/background_job.py b/background_job.py old mode 100644 new mode 100755 index f39b302..9e6d024 --- a/background_job.py +++ b/background_job.py @@ -67,13 +67,13 @@ def loop(): if ram_usage >= 98 and swap_usage >= 98: ram_full() - elif ram_usage >= 90 = warning_cooldown == 0: + elif ram_usage >= 90 and warning_cooldown == 0: ram_almost_full() warning_cooldown = 30 else: warning_cooldown -= 1 - + sleep(1)