Skip to content

Commit

Permalink
appease rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
majormoses committed Oct 11, 2016
1 parent 4de2841 commit 3a6c274
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/metrics-memory-percent.rb
Expand Up @@ -67,7 +67,7 @@ def metrics_hash
mem['freeWOBuffersCaches'] = mem['free'] + (mem['buffers'] + mem['cached'])

# to prevent division by zero
swptot = if mem['swapTotal'] == 0
swptot = if mem['swapTotal'].zero?
1
else
mem['swapTotal']
Expand Down

0 comments on commit 3a6c274

Please sign in to comment.