Do not show mantissa for absolute sizes

This commit is contained in:
Arun Prakash Jana 2019-07-05 02:08:31 +05:30
parent 379fdf50fa
commit a25e878dfc
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -2178,7 +2178,7 @@ static char *coolsize(off_t size)
rem /= 10; rem /= 10;
} }
if (i > 0 && i < 6) { if (i > 0 && i < 6 && rem) {
ret = xstrlcpy(size_buf, xitoa(size), 11); ret = xstrlcpy(size_buf, xitoa(size), 11);
size_buf[ret - 1] = '.'; size_buf[ret - 1] = '.';