diff options
Diffstat (limited to 'lib/oxidized')
-rw-r--r-- | lib/oxidized/node/stats.rb | 4 |
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 |