mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
fix: read atomic variable in clientDevNull round trip time (#17955)
This commit is contained in:
parent
9458485e43
commit
b13fcaf666
@ -1185,7 +1185,7 @@ func (a adminAPIHandlers) ClientDevNullExtraTime(w http.ResponseWriter, r *http.
|
||||
}
|
||||
|
||||
enc := json.NewEncoder(w)
|
||||
if err := enc.Encode(madmin.ClientPerfExtraTime{TimeSpent: globalLastClientPerfExtraTime}); err != nil {
|
||||
if err := enc.Encode(madmin.ClientPerfExtraTime{TimeSpent: atomic.LoadInt64(&globalLastClientPerfExtraTime)}); err != nil {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user