Permalink
Browse files

Instead of just splaying a minute splay based on the supplied interval

  • Loading branch information...
1 parent f9ea93e commit e58e748ab6017050b37868e5a501f8ec59ead115 @ripienaar committed Aug 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mnrpes/scheduler.rb
View
@@ -17,7 +17,7 @@ def initialize(destination, checks)
end
def nrpe(command, interval, filter=nil)
- options = {:first_in => "%ss" % rand(60),
+ options = {:first_in => "%ss" % rand(Rufus.parse_time_string(interval)),
:blocking => true}
Log.info("Adding a job for %s every %s matching '%s', first in %s" % [command, interval, filter, options[:first_in]])

0 comments on commit e58e748

Please sign in to comment.