mirror of
https://github.com/minio/minio.git
synced 2025-11-12 06:50:17 -05:00
change ReadPerf into ReadThroughput in NetPerfInfo. (#8316)
Previously `ReadPerf` was in time.Duration is changed to `ReadThroughput` in uint64.
This commit is contained in:
@@ -106,9 +106,10 @@ func (s *peerRESTServer) NetReadPerfInfoHandler(w http.ResponseWriter, r *http.R
|
||||
addr = GetLocalPeer(globalEndpoints)
|
||||
}
|
||||
|
||||
d := end.Sub(start)
|
||||
info := ServerNetReadPerfInfo{
|
||||
Addr: addr,
|
||||
ReadPerf: end.Sub(start),
|
||||
Addr: addr,
|
||||
ReadThroughput: uint64(int64(time.Second) * size / int64(d)),
|
||||
}
|
||||
|
||||
ctx := newContext(r, w, "NetReadPerfInfo")
|
||||
|
||||
Reference in New Issue
Block a user