From e415d0b7e01e0ec806f37cfc11bd927341db41b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Thu, 3 Mar 2022 00:26:36 +0100 Subject: [PATCH] bug: "7" included hour 3, i.e. times up until 3:59 am --- libexec/kiwi-cron/randomize_schedule | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/kiwi-cron/randomize_schedule b/libexec/kiwi-cron/randomize_schedule index c5e938a..e46eb93 100755 --- a/libexec/kiwi-cron/randomize_schedule +++ b/libexec/kiwi-cron/randomize_schedule @@ -8,7 +8,7 @@ read -r rs_minute rs_hour rs_day rs_month rs_weekday rs_command rs_minute=$(( RANDOM % 60 )) [ "${rs_hour}" = "R" ] && \ - rs_hour=$(( (21 + RANDOM % 7) % 24 )) # prefer nighttime + rs_hour=$(( (21 + RANDOM % 6) % 24 )) # prefer nighttime # rs_hour=$(( RANDOM % 24 )) # don't prefer nighttime [ "${rs_day}" = "R" ] && \