|
|
@@ -42,7 +42,7 @@ def read_stats(f):
|
|
|
mountpoint_size = ord(buf[index])
|
|
|
disk_fmt = '%dp %s %s' % (mountpoint_size + 1, fmt, fmt)
|
|
|
size = struct.calcsize(disk_fmt)
|
|
|
- data = struct.unpack(disk_fmt, buf[index:index+size])
|
|
|
+ data = struct.unpack_from(disk_fmt, buf, index)
|
|
|
|
|
|
mountpoint = data[0]
|
|
|
total = data[1:1441]
|