diff --git a/cmd/admin-handlers.go b/cmd/admin-handlers.go index 812ffefcb..afd1f5b8c 100644 --- a/cmd/admin-handlers.go +++ b/cmd/admin-handlers.go @@ -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 } }