Permalink
Browse files

Switching interval time to minutes to match the agent.

  • Loading branch information...
JEG2 committed Aug 24, 2009
1 parent bbfec38 commit 4812191b5f66c493b3e0fd02b78e14ccaf787735
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/scout/server.rb
View
@@ -112,8 +112,8 @@ def process_plugin(plugin)
memory = @history["memory"][id_and_name] ||
@history["memory"][plugin['name']]
run_time = Time.now
- delta = last_run.nil? ? nil :
- run_time - (last_run + plugin['interval'])
+ delta = last_run.nil? ? nil : run_time -
+ (last_run + plugin['interval'] * 60)
if last_run.nil? or delta.between?(-RUN_DELTA, 0) or delta >= 0
debug "Plugin is past interval and needs to be run. " +
"(last run: #{last_run || 'nil'})"

0 comments on commit 4812191

Please sign in to comment.