mirror of https://github.com/status-im/go-waku.git
fix: reset bandwidth counter
This commit is contained in:
parent
b021257652
commit
319e843f0b
|
@ -373,6 +373,7 @@ func (w *WakuNode) Start(ctx context.Context) error {
|
|||
return
|
||||
case <-ticker.C:
|
||||
totals := w.bandwidthCounter.GetBandwidthTotals()
|
||||
w.bandwidthCounter.Reset()
|
||||
w.metrics.RecordBandwidth(totals)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue