mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 09:45:22 +03:00
Fix percent formatting
This commit is contained in:
parent
f1a8a7981d
commit
fa698514ab
@ -826,9 +826,9 @@ def get_intel_gpu_stats() -> dict[str, str]:
|
|||||||
|
|
||||||
for hw in usages:
|
for hw in usages:
|
||||||
if "gpu" in hw:
|
if "gpu" in hw:
|
||||||
results["gpu_usage"] = f"{hw.strip().split(' ')[1].split(' ')[0]} %"
|
results["gpu_usage"] = f"{hw.strip().split(' ')[1].replace('%', '')} %"
|
||||||
elif "vram" in hw:
|
elif "vram" in hw:
|
||||||
results["memory_usage"] = f"{hw.strip().split(' ')[1].split(' ')[0]} %"
|
results["memory_usage"] = f"{hw.strip().split(' ')[1].replace('%', '')} %"
|
||||||
|
|
||||||
return results
|
return results
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user