mirror of
https://github.com/jarun/nnn.git
synced 2025-02-26 11:11:33 +00:00
Do not show mantissa for absolute sizes
This commit is contained in:
parent
379fdf50fa
commit
a25e878dfc
1 changed files with 1 additions and 1 deletions
|
@ -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] = '.';
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue