mirror of
https://github.com/minio/minio.git
synced 2025-02-27 05:19:16 -05:00
fix: drive names in output of parallel obd test (#9312)
This commit is contained in:
parent
3184205519
commit
9f81d014f1
@ -80,10 +80,10 @@ func getLocalDrivesOBD(ctx context.Context, parallel bool, endpointZones Endpoin
|
||||
})
|
||||
continue
|
||||
}
|
||||
measure := func(index int) {
|
||||
measure := func(index int, path string) {
|
||||
latency, throughput, err := disk.GetOBDInfo(ctx, pathJoin(endpoint.Path, minioMetaTmpBucket, mustGetUUID()))
|
||||
driveOBDInfo := madmin.DriveOBDInfo{
|
||||
Path: endpoint.Path,
|
||||
Path: path,
|
||||
Latency: latency,
|
||||
Throughput: throughput,
|
||||
}
|
||||
@ -96,9 +96,9 @@ func getLocalDrivesOBD(ctx context.Context, parallel bool, endpointZones Endpoin
|
||||
wg.Add(1)
|
||||
|
||||
if parallel {
|
||||
go measure(i)
|
||||
go measure(i, endpoint.Path)
|
||||
} else {
|
||||
measure(i)
|
||||
measure(i, endpoint.Path)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user