mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
fix: expMovingAvg is too small when startTime is zero (#17346)
This commit is contained in:
@@ -57,6 +57,10 @@ func (m *bucketMeasurement) updateExponentialMovingAverage(endTime time.Time) {
|
||||
m.lock.Unlock()
|
||||
}()
|
||||
|
||||
if m.startTime.IsZero() {
|
||||
return
|
||||
}
|
||||
|
||||
if endTime.Before(m.startTime) {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user