summaryrefslogtreecommitdiff
path: root/lib/oxidized/node/stats.rb
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2018-06-03 15:06:17 +0300
committerSaku Ytti <saku@ytti.fi>2018-06-03 15:06:17 +0300
commit45ada824882a9f1647790018db6fe4ae76217ce3 (patch)
tree576043b23d00073fa7b1b9cc3569fa366e94fcb7 /lib/oxidized/node/stats.rb
parent8d93ecc5230917861d7a5d3495e049f3ddc10161 (diff)
rubycop fixes
Diffstat (limited to 'lib/oxidized/node/stats.rb')
-rw-r--r--lib/oxidized/node/stats.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/oxidized/node/stats.rb b/lib/oxidized/node/stats.rb
index c20a91a..0778d6d 100644
--- a/lib/oxidized/node/stats.rb
+++ b/lib/oxidized/node/stats.rb
@@ -23,7 +23,7 @@ module Oxidized
status ? @stats[status] : @stats
end
- def get_counter counter=nil
+ def get_counter counter = nil
counter ? @stats[:counter][counter] : @stats[:counter]
end
@@ -32,7 +32,7 @@ module Oxidized
end
def failures
- @stats[:counter].reduce(0) { |m,h| h[0] == :success ? m : m+h[1] }
+ @stats[:counter].reduce(0) { |m, h| h[0] == :success ? m : m + h[1] }
end
private