Blame SOURCES/iotop-0.6-splitline.patch

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