X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fstkstring.c;h=4fa5ab14ed551f5a7d5eebb87de49e78ed8ea1df;hb=f0459952ab7a84b2a2e16ee38456087b0986a228;hp=c84d6279d890f21456b9175d0fdf100c263167df;hpb=449b6a65695233ea809c0f3c72dfb4fcc1f4308c;p=libucw.git diff --git a/lib/stkstring.c b/lib/stkstring.c index c84d6279..4fa5ab14 100644 --- a/lib/stkstring.c +++ b/lib/stkstring.c @@ -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)));