@@ -968,9 +968,17 @@ func formatSize(bytes int) string {
968968 )
969969 switch {
970970 case bytes >= mb:
971− return fmt.Sprintf("%.1f MB", float64(bytes)/float64(mb))
971+ result := fmt.Sprintf("%.1f MB", float64(bytes)/float64(mb))
972+ if strings.HasSuffix(result, ".0 MB") {
973+ result = strings.Replace(result, ".0 MB", " MB", 1)
974+ }
975+ return result
972976 case bytes >= kb:
973− return fmt.Sprintf("%.1f KB", float64(bytes)/float64(kb))
977+ result := fmt.Sprintf("%.1f KB", float64(bytes)/float64(kb))
978+ if strings.HasSuffix(result, ".0 KB") {
979+ result = strings.Replace(result, ".0 KB", " KB", 1)
980+ }
981+ return result
974982 default:
975983 return fmt.Sprintf("%d B", bytes)
976984 }