graphs: make top level div and clean the timer

This commit is contained in:
Girish Ramakrishnan
2025-07-03 17:31:49 +02:00
parent 6f358dd8ea
commit b3071603d0
4 changed files with 12 additions and 8 deletions
+1 -3
View File
@@ -14,7 +14,7 @@ import GraphItem from './GraphItem.vue';
const systemModel = SystemModel.create();
const periods = [
{ hours: 0, label: t('app.graphs.period.live'), format: 'hh:mm A', tooltipFormat: 'hh:mm A' },
{ hours: 0, label: t('app.graphs.period.live'), format: 'hh:mm A', tooltipFormat: 'hh:mm:ss A' },
{ hours: 1, label: t('app.graphs.period.1h'), format: 'hh:mm A', tooltipFormat: 'hh:mm A' },
{ hours: 6, label: t('app.graphs.period.6h'), format: 'hh:mm A', tooltipFormat: 'hh:mm A' },
{ hours: 12, label: t('app.graphs.period.12h'), format: 'hh:mm A', tooltipFormat: 'hh:mm A' },
@@ -60,8 +60,6 @@ async function liveRefresh() {
};
}
// CPU and Memory graph have known min/max set and auto-scaling gets disabled
// Disk and Network graphs auto-scale the y values.
async function onPeriodChange() {
if (metricStream) {
metricStream.close();