Fixes - Fix disk stats computation in diskdata
When a disk was specified, _get_io_stats() was summing statistics
for all drives, not just the selected device name.
@@ -165,7 +165,8 @@ class Py3status:
write = 0
with open('/proc/diskstats', 'r') as fd:
for line in fd:
- if disk and disk in line:
+ if disk:
+ if " "+disk+" " in line:
data = line.split()
read += int(data[5]) * self.sector_size
write += int(data[9]) * self.sector_size
