mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 17:55:21 +03:00
Don't recheck erroring hwaccel in http either
This commit is contained in:
parent
417a42b0b3
commit
7574b9e846
@ -76,6 +76,7 @@ def create_app(
|
||||
app.storage_maintainer = storage_maintainer
|
||||
app.plus_api = plus_api
|
||||
app.camera_error_image = None
|
||||
app.hwaccel_errors = []
|
||||
|
||||
app.register_blueprint(bp)
|
||||
|
||||
@ -761,7 +762,7 @@ def version():
|
||||
|
||||
@bp.route("/stats")
|
||||
def stats():
|
||||
stats = stats_snapshot(current_app.frigate_config, current_app.stats_tracking, [])
|
||||
stats = stats_snapshot(current_app.frigate_config, current_app.stats_tracking, current_app.hwaccel_errors)
|
||||
return jsonify(stats)
|
||||
|
||||
|
||||
@ -861,7 +862,7 @@ def latest_frame(camera_name):
|
||||
@bp.route("/recordings/storage", methods=["GET"])
|
||||
def get_recordings_storage_usage():
|
||||
recording_stats = stats_snapshot(
|
||||
current_app.frigate_config, current_app.stats_tracking, []
|
||||
current_app.frigate_config, current_app.stats_tracking, current_app.hwaccel_errors
|
||||
)["service"]["storage"][RECORD_DIR]
|
||||
total_mb = recording_stats["total"]
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user