narrow down midnight sleep time
This commit is contained in:
parent
d61f9543fb
commit
66e6c3f688
2
coin.rb
2
coin.rb
@ -112,7 +112,7 @@ loop do
|
|||||||
# if max coins per day has reached, sleep until midnight
|
# if max coins per day has reached, sleep until midnight
|
||||||
if coins_offered_today >= MAX_COINS_PER_DAY
|
if coins_offered_today >= MAX_COINS_PER_DAY
|
||||||
sleep(get_seconds_to_midnight(Time.now))
|
sleep(get_seconds_to_midnight(Time.now))
|
||||||
sleep(get_random_hours(0, 11))
|
sleep(get_random_hours(5, 11))
|
||||||
coins_offered_today = 0
|
coins_offered_today = 0
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user