mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-05 22:57:40 +03:00
always hide ffmpeg cpu warnings for replay cameras
This commit is contained in:
parent
858181efe5
commit
3c2a53fe48
@ -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", {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user