diff options
author | Paul Wise <pabs3@bonedaddy.net> | 2018-05-25 15:20:44 +0800 |
---|---|---|
committer | Paul Wise <pabs3@bonedaddy.net> | 2018-05-25 15:20:44 +0800 |
commit | 7c51ce0e29bd135c216f18e18f0c4ab769af0d6f (patch) | |
tree | 5e987fdf1ce0b834f5b03e296ebf687d0b1caa4e | |
parent | 0392b205b5c3973a326721c2e9f97f0fa2eefa82 (diff) | |
download | iotop-7c51ce0e29bd135c216f18e18f0c4ab769af0d6f.tar.gz |
Actually skip invalid lines in /proc/*/status
Fixes: commit 0392b205b5c3973a326721c2e9f97f0fa2eefa82
-rw-r--r-- | iotop/data.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iotop/data.py b/iotop/data.py index e0387f0..3874974 100644 --- a/iotop/data.py +++ b/iotop/data.py @@ -214,7 +214,7 @@ def parse_proc_pid_status(pid): # Ignore lines that are not formatted correctly as # some downstream kernels may have weird lines and # the needed fields are probably formatted correctly. - pass + continue result_dict[key] = value.strip() except IOError: pass # No such process |