Jim Warner 133a833942 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>
2023-03-02 19:38:41 +11:00
..
2023-02-07 21:09:48 +11:00
2023-02-07 21:09:48 +11:00
2022-08-29 20:38:17 +10:00
2023-02-07 21:09:48 +11:00
2023-02-07 21:09:48 +11:00
2023-02-07 21:09:48 +11:00
2023-02-07 21:09:48 +11:00
2023-02-07 21:09:48 +11:00
2023-02-07 21:09:48 +11:00