From e576844f0f0c797c5e962e7d4a54395eed72abbe Mon Sep 17 00:00:00 2001 From: Krishna Srinivas <634494+krishnasrinivas@users.noreply.github.com> Date: Thu, 16 Sep 2021 17:25:17 -0700 Subject: [PATCH] Erase the spinner on speedtest completion (#3800) --- cmd/admin-speedtest.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/admin-speedtest.go b/cmd/admin-speedtest.go index 551efc9a..f7c95c43 100644 --- a/cmd/admin-speedtest.go +++ b/cmd/admin-speedtest.go @@ -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)) }