mirror of
https://github.com/status-im/go-waku.git
synced 2025-02-09 04:04:10 +00:00
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…
x
Reference in New Issue
Block a user