mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-01-22 20:18:30 +03:00
Return result
This commit is contained in:
parent
2b31c53614
commit
82410f8278
@ -548,6 +548,8 @@ def get_jetson_stats() -> Optional[dict[int, dict]]:
|
||||
with open("/sys/devices/platform/gpu.0/load", "r") as f:
|
||||
gpuload = float(f.readline()) / 10
|
||||
results["gpu"] = f"{gpuload}%"
|
||||
else:
|
||||
results["gpu"] = "-"
|
||||
except Exception:
|
||||
return None
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user