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:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user