diff options
author | beppu <beppu@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-02-13 04:10:57 +0000 |
---|---|---|
committer | beppu <beppu@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-02-13 04:10:57 +0000 |
commit | 21b372356c57f98bb27bd0c55cf713524d968e72 (patch) | |
tree | 5db989e3ca6210c3966f4cb4bfb8e364e21b2425 /du.c | |
parent | f90bfa67dbd05f428e51c893f1fad672ac07616d (diff) | |
download | busybox-w32-21b372356c57f98bb27bd0c55cf713524d968e72.tar.gz busybox-w32-21b372356c57f98bb27bd0c55cf713524d968e72.tar.bz2 busybox-w32-21b372356c57f98bb27bd0c55cf713524d968e72.zip |
- I suspect the problem has something to do w/ symlinks.
- It's not completely in agreement w/ GNU/du, but
+ the answer is much closer than before.
- Some of the right-shifts seem to have mysteriously disappeared.
I put them back in.
git-svn-id: svn://busybox.net/trunk/busybox@371 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'du.c')
-rw-r--r-- | du.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -70,7 +70,7 @@ static long du(char *filename) | |||
70 | } | 70 | } |
71 | 71 | ||
72 | du_depth++; | 72 | du_depth++; |
73 | sum = statbuf.st_blocks; | 73 | sum = (statbuf.st_blocks >> 1); |
74 | 74 | ||
75 | /* Don't add in stuff pointed to by links */ | 75 | /* Don't add in stuff pointed to by links */ |
76 | if (S_ISLNK(statbuf.st_mode)) { | 76 | if (S_ISLNK(statbuf.st_mode)) { |
@@ -153,4 +153,4 @@ int du_main(int argc, char **argv) | |||
153 | exit(0); | 153 | exit(0); |
154 | } | 154 | } |
155 | 155 | ||
156 | /* $Id: du.c,v 1.12 2000/02/11 21:55:04 erik Exp $ */ | 156 | /* $Id: du.c,v 1.13 2000/02/13 04:10:57 beppu Exp $ */ |