From 5b822317b2204aabf2716cac3a85d66ba1fcc0cf Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Tue, 12 Jun 2018 12:39:57 +0300 Subject: useless branching It will always be MAX_SIZE+1 after push --- lib/oxidized/node/stats.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1