summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2018-06-12 12:39:57 +0300
committerSaku Ytti <saku@ytti.fi>2018-06-12 12:39:57 +0300
commit5b822317b2204aabf2716cac3a85d66ba1fcc0cf (patch)
tree77a6efdf85ec215a141b869c2d2da81331eebf91
parent9fab2a507fcf10ae5c61bbd8e6a3534f64a66589 (diff)
useless branching
It will always be MAX_SIZE+1 after push
-rw-r--r--lib/oxidized/node/stats.rb2
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