Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Switching interval time to minutes to match the agent.

  • Loading branch information...
commit 4812191b5f66c493b3e0fd02b78e14ccaf787735 1 parent bbfec38
@JEG2 JEG2 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/scout/server.rb
View
4 lib/scout/server.rb
@@ -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'})"
Please sign in to comment.
Something went wrong with that request. Please try again.