summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/globals3
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
}