]> granicus.if.org Git - mutt/commitdiff
Localization nit from Byrial Jensen.
authorThomas Roessler <roessler@does-not-exist.org>
Thu, 16 Mar 2000 08:32:02 +0000 (08:32 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Thu, 16 Mar 2000 08:32:02 +0000 (08:32 +0000)
muttlib.c

index 6593e8a3a77e880536edaf649f4a6e327d06df33..a0022b9f89a65f62b5177a3fec3983365abe330f 100644 (file)
--- a/muttlib.c
+++ b/muttlib.c
@@ -552,10 +552,8 @@ void mutt_pretty_size (char *s, size_t len, long n)
 {
   if (n == 0)
     strfcpy (s, "0K", len);
-  else if (n < 103)
-    strfcpy (s, "0.1K", len);
   else if (n < 10189) /* 0.1K - 9.9K */
-    snprintf (s, len, "%3.1fK", n / 1024.0);
+    snprintf (s, len, "%3.1fK", (n < 103) ? 0.1 : n / 1024.0);
   else if (n < 1023949) /* 10K - 999K */
   {
     /* 51 is magic which causes 10189/10240 to be rounded up to 10 */