lib/zabbix-ruby-client/plugins/disk.rb in zabbix-ruby-client-0.0.18 vs lib/zabbix-ruby-client/plugins/disk.rb in zabbix-ruby-client-0.0.19

- old
+ new

@@ -47,13 +47,13 @@ end private def get_info(disk, device) - info = diskinfo(disk) + info = diskinfo(device) if info back = info.split(/\s+/) - io = getline("/proc/diskstats", " #{device} ") + io = getline("/proc/diskstats", " #{disk} ") if io back += io.split(/\s+/) end back else