mirror of
https://github.com/minio/minio
synced 2024-10-14 11:52:56 +00: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…
Reference in a new issue