diff options
author | Henrik Hallberg <henrik@k2h.se> | 2012-07-02 23:07:19 +0200 |
---|---|---|
committer | Jouke Witteveen <j.witteveen@gmail.com> | 2012-07-03 12:09:51 +0200 |
commit | 6ed493eed48764ba532c0c365db0e281e8bcd17d (patch) | |
tree | 25d308fa60959e18b013c6536b46aec123bb8db3 | |
parent | 7e2ff917a67573ed957d57d2fd077b4c219c0d86 (diff) | |
download | netctl-6ed493eed48764ba532c0c365db0e281e8bcd17d.tar.gz netctl-6ed493eed48764ba532c0c365db0e281e8bcd17d.tar.xz |
Lower latency in timeout_wait
-rw-r--r-- | src/globals | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/globals b/src/globals index af411fe..5278bdc 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 } |