summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-06-16 12:50:27 +0000
committerJim Meyering <jim@meyering.net>2000-06-16 12:50:27 +0000
commita6b94414503f0e6f5c4c408a8de290a300a80107 (patch)
treec78dd349885f705fa928da635fcc35f983d5dc5b /src
parent78362b9aa4f8e7c517a25e2e2f4fa1752b418db4 (diff)
downloadcoreutils-a6b94414503f0e6f5c4c408a8de290a300a80107.tar.xz
(print_size): Round disk usage up.
Diffstat (limited to 'src')
-rw-r--r--src/du.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/du.c b/src/du.c
index 6c6e451c3..9bfe56a91 100644
--- a/src/du.c
+++ b/src/du.c
@@ -300,7 +300,8 @@ print_size (uintmax_t n_blocks, const char *string)
{
char buf[LONGEST_HUMAN_READABLE + 1];
printf ("%s\t%s\n",
- human_readable (n_blocks, buf, ST_NBLOCKSIZE, output_block_size),
+ human_readable_inexact (n_blocks, buf, ST_NBLOCKSIZE,
+ output_block_size, human_ceiling),
string);
fflush (stdout);
}