mirror of
https://git.busybox.net/busybox.git
synced 2024-11-27 07:33:26 +08:00
Removed a redundant call du(); Save cpu cycles.
This commit is contained in:
parent
59017e80da
commit
b52a218c95
@ -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 $ */
|
||||
|
4
du.c
4
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 $ */
|
||||
|
Loading…
Reference in New Issue
Block a user