metrics: interval is not configurable, unnecessary
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user