From 80d378e1154e9d7a869ad522892357ff590e00b4 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Mon, 25 Apr 2011 11:07:31 -0400 Subject: [PATCH] fixup waiting for root this was potentially waiting for 100s for root by default. --- init.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/init.c b/init.c index c324c67..8f1dad7 100644 --- a/init.c +++ b/init.c @@ -515,10 +515,12 @@ static int wait_for_root(void) { /* {{{ */ } if (delay <= 0) { - delay = 100; /* 100 1/10ths of a second */ + delay = 10; } - msg("waiting up to %.2g seconds for %s ...\n", (float)delay / 10, root); + msg("waiting up to %d seconds for %s ...\n", delay, root); + + delay *= 10; /* we sleep in centiseconds */ while (delay--) { if (access(root, F_OK) == 0) { struct stat st;