summaryrefslogtreecommitdiff
path: root/lib/oxidized
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2017-01-01 11:37:15 +0200
committerSaku Ytti <saku@ytti.fi>2017-01-01 11:37:15 +0200
commit88811da1a72b3f7d9ad51b54386478426aeb8bb2 (patch)
treef3d556e6c9645b2747b8f1b07434c85f44f68550 /lib/oxidized
parent5ee54cb50248c3b1cc93c5b83ed0cdbba7f13adb (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.rb2
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,