[~] Refactor

This commit is contained in:
Siarhei Siniak 2022-11-11 16:42:29 +03:00
parent 8bd38d3119
commit 08eb4e2a45

@ -533,7 +533,7 @@ def eternal_oom(argv):
if oom_mean_cpu() > options.cpu_limit: if oom_mean_cpu() > options.cpu_limit:
if last_cpu_high is None: 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: if datetime.datetime.now().timestamp() - last_cpu_high > 10:
last_cpu_high = None last_cpu_high = None