mirror of
https://github.com/yavook/kiwi-cron.git
synced 2024-11-23 16:03:01 +00:00
bug: "7" included hour 3, i.e. times up until 3:59 am
This commit is contained in:
parent
beb8d12302
commit
e415d0b7e0
1 changed files with 1 additions and 1 deletions
|
@ -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" ] && \
|
||||
|
|
Loading…
Reference in a new issue