mirror of
https://github.com/minio/mc.git
synced 2025-07-30 07:23:03 +03:00
Improve format of perf tests output (#4330)
This commit is contained in:
@ -64,17 +64,17 @@ func mainAdminSpeedTestNetperf(ctx *cli.Context, aliasedURL string, outCh chan<-
|
||||
if globalJSON {
|
||||
select {
|
||||
case e := <-errorCh:
|
||||
printMsg(PerfTestResult{
|
||||
printMsg(convertPerfResult(PerfTestResult{
|
||||
Type: NetPerfTest,
|
||||
Err: e.Error(),
|
||||
Final: true,
|
||||
})
|
||||
}))
|
||||
case result := <-resultCh:
|
||||
printMsg(PerfTestResult{
|
||||
printMsg(convertPerfResult(PerfTestResult{
|
||||
Type: NetPerfTest,
|
||||
NetResult: &result,
|
||||
Final: true,
|
||||
})
|
||||
}))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user