diff options
author | Erich Eckner <git@eckner.net> | 2024-11-05 18:38:58 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2024-11-05 18:38:58 +0100 |
commit | 663e7fdf0590fb6c9007d8c9b8bce7380627d75e (patch) | |
tree | 33ceb77977aba313f3a5bf42363105892e49fda5 | |
parent | 36f29274619d02cf41cc33395d8bd12b5957ec3b (diff) | |
download | computer-time-limit-663e7fdf0590fb6c9007d8c9b8bce7380627d75e.tar.xz |
cap negative times
-rwxr-xr-x | computer-time-limit | 1 |
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 |