|
|
@ -80,10 +80,10 @@ func getLocalDrivesOBD(ctx context.Context, parallel bool, endpointZones Endpoin |
|
|
|
}) |
|
|
|
}) |
|
|
|
continue |
|
|
|
continue |
|
|
|
} |
|
|
|
} |
|
|
|
measure := func(index int) { |
|
|
|
measure := func(index int, path string) { |
|
|
|
latency, throughput, err := disk.GetOBDInfo(ctx, pathJoin(endpoint.Path, minioMetaTmpBucket, mustGetUUID())) |
|
|
|
latency, throughput, err := disk.GetOBDInfo(ctx, pathJoin(endpoint.Path, minioMetaTmpBucket, mustGetUUID())) |
|
|
|
driveOBDInfo := madmin.DriveOBDInfo{ |
|
|
|
driveOBDInfo := madmin.DriveOBDInfo{ |
|
|
|
Path: endpoint.Path, |
|
|
|
Path: path, |
|
|
|
Latency: latency, |
|
|
|
Latency: latency, |
|
|
|
Throughput: throughput, |
|
|
|
Throughput: throughput, |
|
|
|
} |
|
|
|
} |
|
|
@ -96,9 +96,9 @@ func getLocalDrivesOBD(ctx context.Context, parallel bool, endpointZones Endpoin |
|
|
|
wg.Add(1) |
|
|
|
wg.Add(1) |
|
|
|
|
|
|
|
|
|
|
|
if parallel { |
|
|
|
if parallel { |
|
|
|
go measure(i) |
|
|
|
go measure(i, endpoint.Path) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
measure(i) |
|
|
|
measure(i, endpoint.Path) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|