Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
leccelecce committed Jan 11, 2023
1 parent 2c02459 commit 0f10831
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions frigate/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -818,16 +818,16 @@ def get_cpu_stats() -> dict[str, dict]:
try:

if docker_memlimit > 0:
memRes = int(stats[5])
memPct = str(
round((float(memRes) / float(docker_memlimit)) * 100, 1)
mem_res = int(stats[5])
mem_pct = str(
round((float(mem_res) / float(docker_memlimit)) * 100, 1)
)
else:
memPct = stats[9]
mem_pct = stats[9]

usages[stats[0]] = {
"cpu": stats[8],
"mem": memPct,
"mem": mem_pct,
}
except:
continue
Expand Down

0 comments on commit 0f10831

Please sign in to comment.