Skip to content

Commit 15148ca

Browse files
committed
modernize
1 parent f179c95 commit 15148ca

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

internal/report/table_helpers_benchmarking.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,7 @@ func storagePerfFromOutput(outputs map[string]script.ScriptOutput) (fioOutput, e
130130
if i >= 0 {
131131
output = output[i:]
132132
} else {
133-
outputLen := len(output)
134-
if outputLen > 100 {
135-
outputLen = 100
136-
}
133+
outputLen := min(len(output), 100)
137134
slog.Info("fio output snip", "output", output[:outputLen], "stderr", outputs[script.StorageBenchmarkScriptName].Stderr)
138135
return fioOutput{}, fmt.Errorf("unable to find fio output")
139136
}

0 commit comments

Comments
 (0)