aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Beppu <beppu@lbox.org>1999-12-10 15:23:47 +0000
committerJohn Beppu <beppu@lbox.org>1999-12-10 15:23:47 +0000
commitb52a218c95ac69977e0a7e1c0ab9563c28e145d0 (patch)
treed551cd2ded9667643081f2c9a579af376ee5551f
parent59017e80daf0b70955fbff0b5e29f8f85da3f309 (diff)
downloadbusybox-b52a218c95ac69977e0a7e1c0ab9563c28e145d0.tar.gz
Removed a redundant call du(); Save cpu cycles.
-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 76ea6d0cb..14e0bdf24 100644
--- a/coreutils/du.c
+++ b/coreutils/du.c
@@ -111,11 +111,11 @@ du_main(int argc, char **argv)
int sum;
for ( ; i < argc; i++) {
sum = du(argv[i]) >> 1;
- if (sum) printf("%-7d %s\n", du(argv[i]) >> 1, argv[i]);
+ if (sum) printf("%-7d %s\n", sum, argv[i]);
}
}
exit(0);
}
-/* $Id: du.c,v 1.4 1999/12/10 07:40:08 beppu Exp $ */
+/* $Id: du.c,v 1.5 1999/12/10 15:23:47 beppu Exp $ */
diff --git a/du.c b/du.c
index 76ea6d0cb..14e0bdf24 100644
--- a/du.c
+++ b/du.c
@@ -111,11 +111,11 @@ du_main(int argc, char **argv)
int sum;
for ( ; i < argc; i++) {
sum = du(argv[i]) >> 1;
- if (sum) printf("%-7d %s\n", du(argv[i]) >> 1, argv[i]);
+ if (sum) printf("%-7d %s\n", sum, argv[i]);
}
}
exit(0);
}
-/* $Id: du.c,v 1.4 1999/12/10 07:40:08 beppu Exp $ */
+/* $Id: du.c,v 1.5 1999/12/10 15:23:47 beppu Exp $ */