1
0
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:
Shireesh Anjal
2022-10-28 11:58:06 +05:30
committed by GitHub
parent 1f51635bc7
commit a2753bbaab
4 changed files with 155 additions and 22 deletions

View File

@ -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
}