diff options
author | Saku Ytti <saku@ytti.fi> | 2018-06-12 00:30:15 +0300 |
---|---|---|
committer | Saku Ytti <saku@ytti.fi> | 2018-06-12 00:30:15 +0300 |
commit | f9c5f300e46e786de95abcb5bbaa7ae6cedd588a (patch) | |
tree | 78cb0ea81a5afb19c2b3c29d32821c8c80612942 /lib/oxidized/node.rb | |
parent | 5df10b5a6880747a9f659905dd7b4b75f338c8bb (diff) |
add mtime and bump up version
Fixes performance regression
Diffstat (limited to 'lib/oxidized/node.rb')
-rw-r--r-- | lib/oxidized/node.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/oxidized/node.rb b/lib/oxidized/node.rb index 3c32b8e..300221e 100644 --- a/lib/oxidized/node.rb +++ b/lib/oxidized/node.rb @@ -95,6 +95,7 @@ module Oxidized :model => @model.class.to_s, :last => nil, :vars => @vars, + :mtime => @stats.mtime, } h[:full_name] = [@group, @name].join('/') if @group if @last @@ -126,6 +127,10 @@ module Oxidized @retry = 0 end + def modified + @stats.update_mtime + end + private def resolve_prompt opt |