diff options
author | Saku Ytti <saku@ytti.fi> | 2017-01-01 11:37:15 +0200 |
---|---|---|
committer | Saku Ytti <saku@ytti.fi> | 2017-01-01 11:37:15 +0200 |
commit | 88811da1a72b3f7d9ad51b54386478426aeb8bb2 (patch) | |
tree | f3d556e6c9645b2747b8f1b07434c85f44f68550 /lib/oxidized | |
parent | 5ee54cb50248c3b1cc93c5b83ed0cdbba7f13adb (diff) |
Send Jobs duplicate of durationmem_use_optimise
avoids duration to keep reference to jobs
Diffstat (limited to 'lib/oxidized')
-rw-r--r-- | lib/oxidized/worker.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/worker.rb b/lib/oxidized/worker.rb index 1952d01..94a13c6 100644 --- a/lib/oxidized/worker.rb +++ b/lib/oxidized/worker.rb @@ -35,7 +35,7 @@ module Oxidized node = job.node node.last = job node.stats.add job - @jobs.duration job.time + @jobs.duration job.time.dup node.running = false if job.status == :success Oxidized.Hooks.handle :node_success, :node => node, |