From ff5893f8db1f3b7032640bf6b39baec3e3aadb31 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Wed, 21 Dec 2022 21:20:54 +0100 Subject: [PATCH] Fix refreshing network state --- Shared/Player/Controls/PlaybackStatsView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shared/Player/Controls/PlaybackStatsView.swift b/Shared/Player/Controls/PlaybackStatsView.swift index 2a988225..5faba768 100644 --- a/Shared/Player/Controls/PlaybackStatsView.swift +++ b/Shared/Player/Controls/PlaybackStatsView.swift @@ -10,7 +10,7 @@ struct PlaybackStatsView: View { mpvPlaybackStatRow("Hardware decoder".localized(), player.mpvBackend.hwDecoder) mpvPlaybackStatRow("Dropped frames".localized(), String(player.mpvBackend.frameDropCount)) mpvPlaybackStatRow("Stream FPS".localized(), player.mpvBackend.formattedOutputFps) - mpvPlaybackStatRow("Cached time".localized(), String(format: "%.2fs", player.mpvBackend.cacheDuration)) + mpvPlaybackStatRow("Cached time".localized(), String(format: "%.2fs", networkState.cacheDuration)) } .padding(.top, 2) #if os(tvOS)