turn-off auto-tuning only when --concurrent is specified (#3909)

This commit is contained in:
Harshavardhana
2022-01-05 15:36:59 -08:00
committed by GitHub
parent 8132c286e4
commit c249b391f8
+3 -9
View File
@@ -183,15 +183,9 @@ func mainAdminSpeedtest(ctx *cli.Context) error {
}
globalSpeedTestVerbose = ctx.Bool("verbose")
autotune := false
if ctx.NumFlags() == 0 {
autotune = true
}
if ctx.NumFlags() == 2 && globalSpeedTestVerbose {
autotune = true
}
// Turn-off autotuning only when "concurrent" is specified
// in all other scenarios keep auto-tuning on.
autotune := !ctx.IsSet("concurrent")
resultCh, err := client.Speedtest(ctxt, madmin.SpeedtestOpts{
Size: int(size),