From 9f81d014f1bf59e9c599527a7031aee32e8cb60f Mon Sep 17 00:00:00 2001 From: Sidhartha Mani Date: Thu, 9 Apr 2020 22:44:17 -0700 Subject: [PATCH] fix: drive names in output of parallel obd test (#9312) --- cmd/obdinfo.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/obdinfo.go b/cmd/obdinfo.go index 619611758..91ede483b 100644 --- a/cmd/obdinfo.go +++ b/cmd/obdinfo.go @@ -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) } } }