bin/metrics-disk-usage.rb in sensu-plugins-disk-checks-1.0.1 vs bin/metrics-disk-usage.rb in sensu-plugins-disk-checks-1.0.2
- old
+ new
@@ -90,10 +90,10 @@
long: '--block-size BLOCK_SIZE',
default: 'M'
# Main function
#
- def run # rubocop:disable all
+ def run
delim = config[:flatten] == true ? '_' : '.'
# Get disk usage from df with used and avail in megabytes
# #YELLOW
`df -PB#{config[:block_size]} #{config[:local] ? '-l' : ''}`.split("\n").drop(1).each do |line| # rubocop:disable Style/Next
_, _, used, avail, used_p, mnt = line.split