aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--coreutils/du.c4
-rw-r--r--du.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/coreutils/du.c b/coreutils/du.c
index 912605882..7b5acb490 100644
--- a/coreutils/du.c
+++ b/coreutils/du.c
@@ -70,7 +70,7 @@ static long du(char *filename)
}
du_depth++;
- sum = statbuf.st_blocks;
+ sum = (statbuf.st_blocks >> 1);
/* Don't add in stuff pointed to by links */
if (S_ISLNK(statbuf.st_mode)) {
@@ -153,4 +153,4 @@ int du_main(int argc, char **argv)
exit(0);
}
-/* $Id: du.c,v 1.12 2000/02/11 21:55:04 erik Exp $ */
+/* $Id: du.c,v 1.13 2000/02/13 04:10:57 beppu Exp $ */
diff --git a/du.c b/du.c
index 912605882..7b5acb490 100644
--- a/du.c
+++ b/du.c
@@ -70,7 +70,7 @@ static long du(char *filename)
}
du_depth++;
- sum = statbuf.st_blocks;
+ sum = (statbuf.st_blocks >> 1);
/* Don't add in stuff pointed to by links */
if (S_ISLNK(statbuf.st_mode)) {
@@ -153,4 +153,4 @@ int du_main(int argc, char **argv)
exit(0);
}
-/* $Id: du.c,v 1.12 2000/02/11 21:55:04 erik Exp $ */
+/* $Id: du.c,v 1.13 2000/02/13 04:10:57 beppu Exp $ */