From 5ee54cb50248c3b1cc93c5b83ed0cdbba7f13adb Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Sun, 1 Jan 2017 11:35:16 +0200 Subject: prevent Node#last from keeping Job reference Should halve Job's in memory --- lib/oxidized/node.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/oxidized/node.rb b/lib/oxidized/node.rb index b13ce0e..5727eef 100644 --- a/lib/oxidized/node.rb +++ b/lib/oxidized/node.rb @@ -106,10 +106,10 @@ module Oxidized def last= job if job ostruct = OpenStruct.new - ostruct.start = job.start - ostruct.end = job.end - ostruct.status = job.status - ostruct.time = job.time + ostruct.start = job.start.dup + ostruct.end = job.end.dup + ostruct.status = job.status.dup + ostruct.time = job.time.dup @last = ostruct else @last = nil -- cgit v1.2.1