From 87c7cddcaf81be325fe88c6e28b99f054cda777c Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Sun, 28 Apr 2024 15:45:26 -0600 Subject: [PATCH] Add stats to other types --- web/src/components/menu/GeneralSettings.tsx | 2 +- web/src/hooks/use-stats.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/web/src/components/menu/GeneralSettings.tsx b/web/src/components/menu/GeneralSettings.tsx index aed5f2173..637a13193 100644 --- a/web/src/components/menu/GeneralSettings.tsx +++ b/web/src/components/menu/GeneralSettings.tsx @@ -139,7 +139,7 @@ export default function GeneralSettings({ className }: GeneralSettings) { System - + InferenceThreshold.warning) { problems.push({ text: `${capitalizeFirstLetter(key)} is slow (${det["inference_speed"]} ms)`, color: "text-orange-400", + relevantLink: "/system#general", }); } }); @@ -71,6 +73,7 @@ export default function useStats(stats: FrigateStats | undefined) { problems.push({ text: `${capitalizeFirstLetter(name.replaceAll("_", " "))} has high FFMPEG CPU usage (${ffmpegAvg}%)`, color: "text-danger", + relevantLink: "/system#cameras", }); } @@ -78,6 +81,7 @@ export default function useStats(stats: FrigateStats | undefined) { problems.push({ text: `${capitalizeFirstLetter(name.replaceAll("_", " "))} has high detect CPU usage (${detectAvg}%)`, color: "text-danger", + relevantLink: "/system#cameras", }); } });