mirror of
https://github.com/minio/minio.git
synced 2025-02-28 13:59:15 -05:00
fix: expMovingAvg is too small when startTime is zero (#17346)
This commit is contained in:
parent
a485b923bf
commit
8030e12ba5
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user