mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-07 03:35:26 +03:00
Fix
This commit is contained in:
parent
dba0502bdc
commit
427d4dfcbe
@ -306,12 +306,12 @@ def get_nvidia_gpu_stats() -> dict[int, dict]:
|
|||||||
gpu_mem_util = -1
|
gpu_mem_util = -1
|
||||||
|
|
||||||
if enc != "N/A":
|
if enc != "N/A":
|
||||||
enc_util = enc.used / enc.total * 100
|
enc_util = enc[0]
|
||||||
else:
|
else:
|
||||||
enc_util = -1
|
enc_util = -1
|
||||||
|
|
||||||
if dec != "N/A":
|
if dec != "N/A":
|
||||||
dec_util = dec.used / dec.total * 100
|
dec_util = dec[0]
|
||||||
else:
|
else:
|
||||||
dec_util = -1
|
dec_util = -1
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user