metrics: interval is not configurable, unnecessary

This commit is contained in:
Girish Ramakrishnan
2025-07-04 23:20:13 +02:00
parent fb02bdb445
commit 2317c17b4b
5 changed files with 12 additions and 17 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ import annotationPlugin from 'chartjs-plugin-annotation';
Chart.register(annotationPlugin);
const LIVE_REFRESH_INTERVAL_MSECS = 500; // for realtime graphs, the time (x axis) advances at this pace
const LIVE_REFRESH_INTERVAL_MSECS = 1000; // for realtime graphs, the time (x axis) advances at this pace
const graphNode = useTemplateRef('graphNode');
+1 -3
View File
@@ -40,10 +40,8 @@ let systemMemory = {};
let systemCpus = {};
let metricStream = null;
const LIVE_REFRESH_INTERVAL_MSECS = 500;
async function liveRefresh() {
metricStream = await systemModel.getMetricStream(LIVE_REFRESH_INTERVAL_MSECS);
metricStream = await systemModel.getMetricStream();
metricStream.onerror = (error) => console.log('event stream error:', error);
metricStream.onmessage = (message) => {
const data = JSON.parse(message.data);