1
0
mirror of https://github.com/minio/mc.git synced 2025-07-28 20:01:58 +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

@ -95,11 +95,11 @@ func mainAdminSpeedTestObject(ctx *cli.Context, aliasedURL string, outCh chan<-
if globalJSON {
if e != nil {
printMsg(PerfTestResult{
printMsg(convertPerfResult(PerfTestResult{
Type: ObjectPerfTest,
Err: e.Error(),
Final: true,
})
}))
return nil
}
@ -108,17 +108,13 @@ func mainAdminSpeedTestObject(ctx *cli.Context, aliasedURL string, outCh chan<-
if result.Version == "" {
continue
}
printMsg(PerfTestResult{
Type: ObjectPerfTest,
ObjectResult: &result,
})
}
printMsg(PerfTestResult{
printMsg(convertPerfResult(PerfTestResult{
Type: ObjectPerfTest,
ObjectResult: &result,
Final: true,
})
}))
return nil
}