[~] Refactor
This commit is contained in:
parent
8bd38d3119
commit
08eb4e2a45
@ -533,7 +533,7 @@ def eternal_oom(argv):
|
||||
|
||||
if oom_mean_cpu() > options.cpu_limit:
|
||||
if last_cpu_high is None:
|
||||
datetime.datetime.now().timestamp()
|
||||
last_cpu_high = datetime.datetime.now().timestamp()
|
||||
|
||||
if datetime.datetime.now().timestamp() - last_cpu_high > 10:
|
||||
last_cpu_high = None
|
||||
|
Loading…
Reference in New Issue
Block a user