- 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.
}
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)) {
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 $ */
}
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)) {
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 $ */