- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for bucketsMeasurement (0.06 sec)
-
internal/bucket/bandwidth/monitor.go
m.mlock.Lock() defer m.mlock.Unlock() for _, bucketMeasurement := range m.bucketsMeasurement { bucketMeasurement.updateExponentialMovingAverage(time.Now()) } } func (m *Monitor) init(opts BucketOptions) { m.mlock.Lock() defer m.mlock.Unlock() _, ok := m.bucketsMeasurement[opts] if !ok { m.bucketsMeasurement[opts] = newBucketMeasurement(time.Now()) } }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 6K bytes - Viewed (0) -
internal/bucket/bandwidth/monitor_test.go
} th := make(map[BucketOptions]*bucketThrottle) th[BucketOptions{Name: "bucket", ReplicationARN: "arn"}] = &thr m := &Monitor{ bucketsMeasurement: tt.fields.activeBuckets, bucketsThrottle: th, NodeCount: 1, } m.bucketsMeasurement[BucketOptions{Name: "bucket", ReplicationARN: "arn"}].updateExponentialMovingAverage(tt.fields.endTime) got := m.GetReport(SelectBuckets())
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 4.3K bytes - Viewed (0)