summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2018-06-12 12:42:07 +0300
committerSaku Ytti <saku@ytti.fi>2018-06-12 12:42:07 +0300
commitda9be642cc26cfa82358eb88c537e79715c75680 (patch)
treeff2821509e965ff370178a0ac319ba8850629db2 /lib
parent5b822317b2204aabf2716cac3a85d66ba1fcc0cf (diff)
rubycop fix
Diffstat (limited to 'lib')
-rw-r--r--lib/oxidized/node/stats.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/oxidized/node/stats.rb b/lib/oxidized/node/stats.rb
index cabbab9..e50f799 100644
--- a/lib/oxidized/node/stats.rb
+++ b/lib/oxidized/node/stats.rb
@@ -1,6 +1,7 @@
module Oxidized
class Node
class Stats
+ attr_reader :mtimes
MAX_STAT = 10
# @param [Job] job job whose information add to stats
@@ -35,10 +36,6 @@ module Oxidized
@stats[:counter].reduce(0) { |m, h| h[0] == :success ? m : m + h[1] }
end
- def mtimes
- @mtimes
- end
-
def mtime
mtimes.last
end