1
0
Fork 0
mirror of https://github.com/yavook/kiwi-cron.git synced 2024-11-24 00:13:00 +00:00

bug: "7" included hour 3, i.e. times up until 3:59 am

This commit is contained in:
Jörn-Michael Miehe 2022-03-03 00:26:36 +01:00
parent beb8d12302
commit e415d0b7e0

View file

@ -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" ] && \