Permalink
Browse files

waiting between 10 and 25 minutes between each growl notification

  • Loading branch information...
1 parent 001851d commit 9490eb60f75f02af812f6bf29b872942c02fec76 @mgornick committed Oct 14, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/timer.rb
View
2 lib/timer.rb
@@ -10,7 +10,7 @@ def save
send_notification
while(true)
- wait_time_between_notify = (rand * 100).to_i
+ wait_time_between_notify = ((10 + rand(15)) * 60).to_i
puts "Waiting: #{wait_time_between_notify} seconds"
sleep wait_time_between_notify
send_notification

0 comments on commit 9490eb6

Please sign in to comment.