summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-05-04 15:34:37 (GMT)
committer Denys Vlasenko <vda.linux@googlemail.com>2010-05-04 15:34:37 (GMT)
commite7f1e5ca1de60db1336f0ec85b1c9df55f6402b7 (patch)
tree37e100b8b76ff23095e86db19fde0d685469c9e6
parentff027d6f50bfa24228e230b84a3297c51d37d000 (diff)
downloadbusybox-e7f1e5ca1de60db1336f0ec85b1c9df55f6402b7.tar.gz
busybox-e7f1e5ca1de60db1336f0ec85b1c9df55f6402b7.tar.bz2
bootchartd: add missing parenthesis
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--init/bootchartd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/init/bootchartd.c b/init/bootchartd.c
index fccaace..9c43e33 100644
--- a/init/bootchartd.c
+++ b/init/bootchartd.c
@@ -175,7 +175,7 @@ static void do_logging(void)
//FILE *proc_netdev = xfopen("proc_netdev.log", "w");
FILE *proc_ps = xfopen("proc_ps.log", "w");
int look_for_login_process = (getppid() == 1);
- unsigned count = 60*1000*1000 / 200*1000; /* ~1 minute */
+ unsigned count = 60*1000*1000 / (200*1000); /* ~1 minute */
while (--count && !bb_got_signal) {
char *p;
@@ -200,8 +200,8 @@ static void do_logging(void)
/* dump_procs saw a getty or {g,k,x}dm
* stop logging in 2 seconds:
*/
- if (count > 2*1000*1000 / 200*1000)
- count = 2*1000*1000 / 200*1000;
+ if (count > 2*1000*1000 / (200*1000))
+ count = 2*1000*1000 / (200*1000);
}
fflush_all();
wait_more: