From 66cb682dd4bb9bb5d9173223abed07e5e0290a0d Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Wed, 9 Nov 2022 13:51:29 -0700 Subject: [PATCH] Increase number of runs to ensure good results --- frigate/util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frigate/util.py b/frigate/util.py index 6d14010b4..36836840b 100755 --- a/frigate/util.py +++ b/frigate/util.py @@ -684,7 +684,8 @@ def escape_special_characters(path: str) -> str: def get_cpu_stats() -> dict[str, dict]: """Get cpu usages for each process id""" usages = {} - top_command = ["top", "-b", "-n", "1"] + # -n=2 runs to ensure extraneous values are not included + top_command = ["top", "-b", "-n", "2"] p = sp.run( top_command,