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