mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-01-29 23:44:55 +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:
|
with open("/sys/devices/platform/gpu.0/load", "r") as f:
|
||||||
gpuload = float(f.readline()) / 10
|
gpuload = float(f.readline()) / 10
|
||||||
results["gpu"] = f"{gpuload}%"
|
results["gpu"] = f"{gpuload}%"
|
||||||
|
else:
|
||||||
|
results["gpu"] = "-"
|
||||||
except Exception:
|
except Exception:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user