Commit 300b80c
authored
analyzer/linux: Fix get_proc_status parsing (#2769)
* analyzer/linux: Fix get_proc_status parsing
When parsing the `/proc/<id>/status` file some field are empty
which made the dict() conversion fail because the list length was 1.
With this change, we are spliting on the ":" character and striping
the key and the value so we can get the key without the ":" at the end and
the value without any "\t" at the beginning or "\n" at the end.
* analyzer/linux: convert parent process id (PPid) to int1 parent a187ad6 commit 300b80c
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
0 commit comments