Skip to content
Browse files

always sleep for at least one second between simulated events

  • Loading branch information...
1 parent c64d9f6 commit f56bdb0fb48f117e7a19833ce17afc00977de8f9 @sferik committed Nov 21, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/event_simulator
View
2 bin/event_simulator
@@ -12,5 +12,5 @@ events = [
while true
puts "#{Time.now}, #{events[rand(events.size)]}"
$stdout.flush
- sleep(rand(3))
+ sleep(rand(3) + 1)
end

0 comments on commit f56bdb0

Please sign in to comment.
Something went wrong with that request. Please try again.