Implement metric interval control

This commit is contained in:
2023-11-30 13:21:10 +01:00
parent fc66f568ea
commit 60af808ea0
5 changed files with 44 additions and 15 deletions

View File

@@ -15,13 +15,13 @@ class MetricManager {
},
cliProgress.Presets.shades_grey
);
setInterval(() => this.multibar.update(), 100);
setInterval(() => this.multibar.update(), 200);
}
}
AddMetrics(name, refresh = true) {
if (this.options.bars) {
const metric = new Metric(name, this.multibar, this.metricBufferSize, refresh);
const metric = new Metric(name, this.multibar, this.metricBufferSize, this.options, refresh);
return metric;
}
}