19 lines
821 B
Diff
19 lines
821 B
Diff
diff -up iotop-0.6/iotop/data.py.splitline iotop-0.6/iotop/data.py
|
|
--- iotop-0.6/iotop/data.py.splitline 2013-05-27 00:44:18.000000000 +0200
|
|
+++ iotop-0.6/iotop/data.py 2018-07-09 16:08:04.135771959 +0200
|
|
@@ -193,7 +193,13 @@ def parse_proc_pid_status(pid):
|
|
result_dict = {}
|
|
try:
|
|
for line in open('/proc/%d/status' % pid):
|
|
- key, value = line.split(':\t', 1)
|
|
+ try:
|
|
+ key, value = line.split(':', 1)
|
|
+ except ValueError:
|
|
+ # Ignore lines that are not formatted correctly as
|
|
+ # some downstream kernels may have weird lines and
|
|
+ # the needed fields are probably formatted correctly.
|
|
+ continue
|
|
result_dict[key] = value.strip()
|
|
except IOError:
|
|
pass # No such process
|