Make scaling consistent

This commit is contained in:
Nicolas Mowen 2024-04-03 15:55:55 -06:00
parent 9c1e23e241
commit bfd078b80e
2 changed files with 4 additions and 3 deletions

View File

@ -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);

View File

@ -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]}
/>