]> mj.ucw.cz Git - libucw.git/commitdiff
Fixed a silly bug.
authorMartin Mares <mj@ucw.cz>
Sat, 10 Feb 2007 11:38:58 +0000 (12:38 +0100)
committerMartin Mares <mj@ucw.cz>
Sat, 10 Feb 2007 11:38:58 +0000 (12:38 +0100)
lib/stkstring.c

index c84d6279d890f21456b9175d0fdf100c263167df..4fa5ab14ed551f5a7d5eebb87de49e78ed8ea1df 100644 (file)
@@ -67,7 +67,7 @@ stk_fsize_internal(char *buf, u64 x)
 {
   if (x < 1<<10)
     sprintf(buf, "%dB", (int)x);
-  if (x < 10<<10)
+  else if (x < 10<<10)
     sprintf(buf, "%.1fK", (double)x/(1<<10));
   else if (x < 1<<20)
     sprintf(buf, "%dK", (int)(x/(1<<10)));