mirror of
https://github.com/minio/minio.git
synced 2025-11-10 05:59:43 -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:
@@ -280,11 +280,11 @@ Fetches Mem utilization for all cluster nodes.
|
||||
|
||||
Fetches network performance of all cluster nodes using given sized payload. Returned value is a map containing each node indexed list of performance of other nodes.
|
||||
|
||||
| Param | Type | Description |
|
||||
|------------|------------------|--------------------------------------------------------------------|
|
||||
| `Addr` | _string_ | Address of the server the following information is retrieved from. |
|
||||
| `Error` | _string_ | Errors (if any) encountered while reaching this node |
|
||||
| `ReadPerf` | _time.Duration_ | Network read performance of the server |
|
||||
| Param | Type | Description |
|
||||
|------------------|-----------|--------------------------------------------------------------------|
|
||||
| `Addr` | _string_ | Address of the server the following information is retrieved from. |
|
||||
| `Error` | _string_ | Errors (if any) encountered while reaching this node |
|
||||
| `ReadThroughput` | _uint64_ | Network read throughput of the server in bytes per second |
|
||||
|
||||
## 5. Heal operations
|
||||
|
||||
|
||||
@@ -305,9 +305,9 @@ func (adm *AdminClient) ServerMemUsageInfo() ([]ServerMemUsageInfo, error) {
|
||||
|
||||
// NetPerfInfo network performance information.
|
||||
type NetPerfInfo struct {
|
||||
Addr string `json:"addr"`
|
||||
ReadPerf time.Duration `json:"readPerf"`
|
||||
Error string `json:"error,omitempty"`
|
||||
Addr string `json:"addr"`
|
||||
ReadThroughput uint64 `json:"readThroughput"`
|
||||
Error string `json:"error,omitempty"`
|
||||
}
|
||||
|
||||
// NetPerfInfo - Returns network performance information of all cluster nodes.
|
||||
|
||||
Reference in New Issue
Block a user