Improve metrics

This commit is contained in:
2023-11-15 11:14:16 +01:00
parent 652be94621
commit 74a4204046
4 changed files with 48 additions and 33 deletions

View File

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