commit | 3655f4b2e30be970c916ab257c4f9432a24dec83 | [log] [tgz] |
---|---|---|
author | John Kacur <jkacur@redhat.com> | Fri Jun 19 16:07:59 2020 -0400 |
committer | John Kacur <jkacur@redhat.com> | Fri Jun 19 16:21:52 2020 -0400 |
tree | ee540d376cf86bf6f5b105d48a43200d586315d4 | |
parent | 77054a7e8bd3991b8f51fc7b05896f3d412db819 [diff] |
python-linux-procfs: Parse the number of cpus correctly on s390(x) Getting the number of cpus breaks on s390 and s390x due to differences in /proc/cpuinfo This can cause problems in other programs such as tuna when running tuna --cpus=1 --isolate for example Fix this by testing whether we are on s390 and increasing the cpu count if we match "cpu number" Signed-off-by: John Kacur <jkacur@redhat.com>