2 Jul
2012
2 Jul
'12
9:07 p.m.
--- src/globals | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/globals b/src/globals index 436334a..62cce3e 100644 --- a/src/globals +++ b/src/globals @@ -100,10 +100,11 @@ function checkyesno() { # $2...: condition command function timeout_wait() { local timeout="$1" + (( timeout *= 10 )) shift while ! eval "$*"; do (( timeout-- > 0 )) || return 1 - sleep 1 + sleep 0.1 done return 0 } -- 1.7.11.1