aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/ls.c
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2016-09-12 12:30:33 -0700
committerRob Landley <rob@landley.net>2016-09-14 15:01:51 -0500
commit409a8e093a4ea8e0892ab302b4fd433d08f435eb (patch)
tree342a52cfb3fdc39a3ac61a4defbb14d4b98662de /toys/posix/ls.c
parent6783156813d6c1c8469a7535f3cb575a776ceaa6 (diff)
downloadtoybox-409a8e093a4ea8e0892ab302b4fd433d08f435eb.tar.gz
Fix ls -lh.
The recent refactoring broke ls -lh by multiplying all sizes by 0 rather than 1.
Diffstat (limited to 'toys/posix/ls.c')
-rw-r--r--toys/posix/ls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/ls.c b/toys/posix/ls.c
index a336ba1a..ab1251a8 100644
--- a/toys/posix/ls.c
+++ b/toys/posix/ls.c
@@ -463,7 +463,7 @@ static void listfiles(int dirfd, struct dirtree *indir)
printf("% *d,% 4d", totals[5]-4, dev_major(st->st_rdev),
dev_minor(st->st_rdev));
else {
- print_with_h(tmp, st->st_size, 0);
+ print_with_h(tmp, st->st_size, 1);
printf("%*s", totals[5]+1, tmp);
}