diff options
author | Jim Warner <james.warner@comcast.net> | 2023-03-01 00:00:00 -0600 |
---|---|---|
committer | Craig Small <csmall@dropbear.xyz> | 2023-03-02 19:38:41 +1100 |
commit | 133a833942224a9ae4cd049d62a3fa54e95c5a2a (patch) | |
tree | f8a8e1e15aef55de481aec5b2d13d5e4df70cb50 /README.md | |
parent | 8c81808de09b034c5dc2221aacc85d25c3218676 (diff) | |
download | procps-ng-133a833942224a9ae4cd049d62a3fa54e95c5a2a.tar.gz |
library: become more tolerant of /proc/cpuinfo formats
In the issue referenced below, it is now apparent that
not all architectures follow a logical/expected format
for the /proc/cpuinfo file. Specifically, the expected
empty line after each processor entry might be missing
under some architectures for the last processor shown.
[ and a belated review of kernel source confirms it. ]
So this commit makes our stat module a little bit more
tolerant of some potential missing newline characters.
[ along the way, it's also now tolerant of a missing ]
[ cpuinfo file plus more efficient whenever a cpu is ]
[ is not linked to a core or toggled offline/online. ]
Reference(s):
https://gitlab.com/procps-ng/procps/-/issues/272
procps-ng/procps#272
Signed-off-by: Jim Warner <james.warner@comcast.net>
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions