]> granicus.if.org Git - neomutt/commitdiff
Display B for bytes when pretty-printing a size
authorPietro Cerutti <gahr@gahr.ch>
Mon, 1 Apr 2019 15:47:55 +0000 (15:47 +0000)
committerPietro Cerutti <gahr@gahr.ch>
Mon, 1 Apr 2019 15:47:55 +0000 (15:47 +0000)
mutt/string.c

index f015dcab0a95df319049eb55577abe42a55db739..bb3fdad0df9d1c1464bf17cf5ae051b1c4a5bffa 100644 (file)
@@ -1019,7 +1019,7 @@ void mutt_str_pretty_size(char *buf, size_t buflen, size_t num)
 {
   if (num < 1000)
   {
-    snprintf(buf, buflen, "%d", (int) num);
+    snprintf(buf, buflen, "%dB", (int) num);
   }
   else if (num < 10189) /* 0.1K - 9.9K */
   {