Erase the spinner on speedtest completion (#3800)

This commit is contained in:
Krishna Srinivas
2021-09-16 17:25:17 -07:00
committed by GitHub
parent d7bc62efa6
commit e576844f0f
+3 -1
View File
@@ -28,6 +28,7 @@ import (
json "github.com/minio/colorjson"
"github.com/minio/madmin-go"
"github.com/minio/mc/pkg/probe"
"github.com/minio/pkg/console"
)
var adminSpeedtestFlags = []cli.Flag{
@@ -193,7 +194,8 @@ func mainAdminSpeedtest(ctx *cli.Context) error {
}
if !globalJSON {
s.Stop()
fmt.Printf("\n\n")
console.RewindLines(1)
console.Println()
}
printMsg(speedTestResult(result))
}