Commit 559c799
committed
Add comments to magic constants missing context
ROOT_KERNEL_TASK_ID = 2: note that PID 2 is kthreadd, parent of all
kernel threads. HEADER_LINES = 2 in get_dev(): note that /proc/net/dev
has two header rows (title + column names), distinguishing it from all
other net files which have one. All other named constants in the parsers
already carry sufficient context.1 parent cfd2e5b commit 559c799
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
0 commit comments