always hide ffmpeg cpu warnings for replay cameras

This commit is contained in:
Josh Hawkins 2026-03-12 22:04:32 -05:00
parent 858181efe5
commit 3c2a53fe48

View File

@ -106,13 +106,11 @@ export default function useStats(stats: FrigateStats | undefined) {
const cameraName = config?.cameras?.[name]?.friendly_name ?? name; const cameraName = config?.cameras?.[name]?.friendly_name ?? name;
// Skip ffmpeg warnings for replay cameras when debug replay is active // Skip ffmpeg warnings for replay cameras
if ( if (
!isNaN(ffmpegAvg) && !isNaN(ffmpegAvg) &&
ffmpegAvg >= CameraFfmpegThreshold.error && ffmpegAvg >= CameraFfmpegThreshold.error &&
!( !isReplayCamera(name)
debugReplayStatus?.active && debugReplayStatus?.replay_camera === name
)
) { ) {
problems.push({ problems.push({
text: t("stats.ffmpegHighCpuUsage", { text: t("stats.ffmpegHighCpuUsage", {