Implement control over default max rate for bars

This commit is contained in:
2023-11-30 13:22:57 +01:00
parent 60af808ea0
commit acf1cf2bf4
2 changed files with 15 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ class Metric {
this.multibar = multibar;
this.bar = multibar.create(0, 0);
this.bar.update(0, { name: barName });
this.maxRate = 1000;
this.maxRate = this.options.defaultmaxrate;
this.bar.total = this.maxRate;
this.buffer = new CircularBuffer(bufferSize);
if (refresh) {