bin/instrument_server in instrumental_tools-0.5.8 vs bin/instrument_server in instrumental_tools-0.6.0

- old
+ new

@@ -226,9 +226,10 @@ } end def self.swap _, total, used, free = `free -k -o | grep Swap`.chomp.split(/\s+/) + return {} if total.to_i == 0 { 'swap.used_mb' => used.to_f / 1024, 'swap.free_mb' => free.to_f / 1024, 'swap.free_percent' => (free.to_f / total.to_f) * 100, }