summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2024-11-05 18:38:58 +0100
committerErich Eckner <git@eckner.net>2024-11-05 18:38:58 +0100
commit663e7fdf0590fb6c9007d8c9b8bce7380627d75e (patch)
tree33ceb77977aba313f3a5bf42363105892e49fda5
parent36f29274619d02cf41cc33395d8bd12b5957ec3b (diff)
downloadcomputer-time-limit-663e7fdf0590fb6c9007d8c9b8bce7380627d75e.tar.xz
cap negative times
-rwxr-xr-xcomputer-time-limit1
1 files changed, 1 insertions, 0 deletions
diff --git a/computer-time-limit b/computer-time-limit
index 91b8bce..7732728 100755
--- a/computer-time-limit
+++ b/computer-time-limit
@@ -138,5 +138,6 @@ while true; do
sende_msg stop "${key}" >/dev/null
fi
done
+ [ ${noch} -lt 0 ] && noch=0
sleep $((15 + ((noch + 15) % 30)))
done