From 22b6ee4ad562dc6db3ee5998cb3d71ebd67dbd72 Mon Sep 17 00:00:00 2001 From: bol-van Date: Fri, 3 Nov 2023 10:45:18 +0300 Subject: [PATCH] rude sleep fix --- common/base.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/base.sh b/common/base.sh index ce7839c..b716385 100644 --- a/common/base.sh +++ b/common/base.sh @@ -246,7 +246,7 @@ msleep() lua -e "require 'nixio'.nanosleep($(($1/1000)),$(calc $1%1000*1000000))" ;; *) - sleep 1 + sleep $((($1+999)/1000)) esac } minsleep()