diff options
author | Saku Ytti <saku@ytti.fi> | 2018-06-12 12:39:57 +0300 |
---|---|---|
committer | Saku Ytti <saku@ytti.fi> | 2018-06-12 12:39:57 +0300 |
commit | 5b822317b2204aabf2716cac3a85d66ba1fcc0cf (patch) | |
tree | 77a6efdf85ec215a141b869c2d2da81331eebf91 /lib | |
parent | 9fab2a507fcf10ae5c61bbd8e6a3534f64a66589 (diff) |
useless branching
It will always be MAX_SIZE+1 after push
Diffstat (limited to 'lib')
-rw-r--r-- | lib/oxidized/node/stats.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/node/stats.rb b/lib/oxidized/node/stats.rb index 9b153ee..cabbab9 100644 --- a/lib/oxidized/node/stats.rb +++ b/lib/oxidized/node/stats.rb @@ -45,7 +45,7 @@ module Oxidized def update_mtime @mtimes.push Time.now.utc - @mtimes.shift if @mtimes.size > MAX_STAT + @mtimes.shift end private |