aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-07-05 02:08:31 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-07-05 02:08:31 +0530
commita25e878dfca2e101d64487ee158103de25175a32 (patch)
tree11a7a55d78fecaced9a53e081fe30709abff125c /src
parent379fdf50fa08a27e69e09f43db82362c49381296 (diff)
downloadnnn-a25e878dfca2e101d64487ee158103de25175a32.tar.gz
Do not show mantissa for absolute sizes
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 841838e..82b0352 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -2178,7 +2178,7 @@ static char *coolsize(off_t size)
rem /= 10;
}
- if (i > 0 && i < 6) {
+ if (i > 0 && i < 6 && rem) {
ret = xstrlcpy(size_buf, xitoa(size), 11);
size_buf[ret - 1] = '.';