mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-08 04:05:26 +03:00
Fix bug on bad storage stats read
This commit is contained in:
parent
9df5927ac5
commit
02a7e8469d
@ -303,6 +303,7 @@ def stats_snapshot(
|
|||||||
storage_stats = shutil.disk_usage(path)
|
storage_stats = shutil.disk_usage(path)
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
stats["service"]["storage"][path] = {}
|
stats["service"]["storage"][path] = {}
|
||||||
|
continue
|
||||||
|
|
||||||
stats["service"]["storage"][path] = {
|
stats["service"]["storage"][path] = {
|
||||||
"total": round(storage_stats.total / pow(2, 20), 1),
|
"total": round(storage_stats.total / pow(2, 20), 1),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user