diff --git a/pkg/bucket/bandwidth/monitor.go b/pkg/bucket/bandwidth/monitor.go index 47e287a05..949c5a44f 100644 --- a/pkg/bucket/bandwidth/monitor.go +++ b/pkg/bucket/bandwidth/monitor.go @@ -123,8 +123,12 @@ func (m *Monitor) getReport(selectBucket SelectionFunction) *bandwidth.Report { if !selectBucket(bucket) { continue } + bucketThrottle, ok := m.bucketThrottle[bucket] + if !ok { + continue + } report.BucketStats[bucket] = bandwidth.Details{ - LimitInBytesPerSecond: m.bucketThrottle[bucket].clusterBandwidth, + LimitInBytesPerSecond: bucketThrottle.clusterBandwidth, CurrentBandwidthInBytesPerSecond: bucketMeasurement.getExpMovingAvgBytesPerSecond(), } }