Send blank hwaccel-error cache so logs will show when loading the stats page manually (#4912)

This commit is contained in:
Nicolas Mowen 2023-01-05 05:27:57 -07:00 committed by GitHub
parent 0a3295aa5c
commit 64ab6580dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -861,7 +861,7 @@ def latest_frame(camera_name):
@bp.route("/recordings/storage", methods=["GET"]) @bp.route("/recordings/storage", methods=["GET"])
def get_recordings_storage_usage(): def get_recordings_storage_usage():
recording_stats = stats_snapshot( recording_stats = stats_snapshot(
current_app.frigate_config, current_app.stats_tracking current_app.frigate_config, current_app.stats_tracking, []
)["service"]["storage"][RECORD_DIR] )["service"]["storage"][RECORD_DIR]
total_mb = recording_stats["total"] total_mb = recording_stats["total"]