mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-10 13:15:25 +03:00
Make scaling consistent
This commit is contained in:
parent
9c1e23e241
commit
bfd078b80e
@ -91,10 +91,11 @@ export default function SystemGraph({
|
||||
},
|
||||
yaxis: {
|
||||
show: false,
|
||||
max: lastValue * 2,
|
||||
min: 0,
|
||||
max: threshold.warning + 10,
|
||||
},
|
||||
};
|
||||
}, [graphId, lastValue, threshold, systemTheme, theme, formatTime]);
|
||||
}, [graphId, threshold, systemTheme, theme, formatTime]);
|
||||
|
||||
useEffect(() => {
|
||||
ApexCharts.exec(graphId, "updateOptions", options, true, true);
|
||||
|
||||
@ -575,7 +575,7 @@ function GeneralMetrics({ lastUpdated, setLastUpdated }: GeneralMetricsProps) {
|
||||
graphId={`${series.name}-cpu`}
|
||||
name={series.name.replaceAll("_", " ")}
|
||||
unit="%"
|
||||
threshold={InferenceThreshold}
|
||||
threshold={DetectorCpuThreshold}
|
||||
updateTimes={updateTimes}
|
||||
data={[series]}
|
||||
/>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user