graphs: make top level div and clean the timer
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user