Skip to content

Commit d46305b

Browse files
committed
fix: broken formatBytes in subController.go after project refactor
1 parent 965b5ee commit d46305b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/sub/subController.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,5 +194,5 @@ func formatBytes(sizeStr string, precision int) string {
194194
suffixes := []string{"B", "K", "M", "G", "T"}
195195

196196
value := math.Pow(1024, base-math.Floor(base))
197-
return fmt.Sprintf("%% .*f %%s", precision, value, suffixes[int(math.Floor(base))])
198-
}
197+
return fmt.Sprintf("%.*f %s", precision, value, suffixes[int(math.Floor(base))])
198+
}

0 commit comments

Comments
 (0)