]> git.99rst.org Git - git.git/commit
chainlint.pl: fix incorrect CPU count on Linux SPARC
authorJohn Paul Adrian Glaubitz <redacted>
Mon, 20 May 2024 19:01:30 +0000 (15:01 -0400)
committerJunio C Hamano <redacted>
Wed, 22 May 2024 18:58:40 +0000 (11:58 -0700)
commit45db5ed3b2f9f1c4768633f3d691bbe1305cf9ca
tree6a6fa5fed5fb655f1cd1ca013faa993cbd27362d
parent037348e99ada4d819460326c21d6cebe6338bfe6
chainlint.pl: fix incorrect CPU count on Linux SPARC

On SPARC systems running Linux, individual processors are denoted with
"CPUnn:" in /proc/cpuinfo instead of the usual "processor : NN". As a
result, the regexp in ncores() matches 0 times. Address this shortcoming
by extending the regexp to also match lines with "CPUnn:".

Signed-off-by: John Paul Adrian Glaubitz <redacted>
[es: simplified regexp; tweaked commit message]
Signed-off-by: Eric Sunshine <redacted>
Tested-by: John Paul Adrian Glaubitz <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/chainlint.pl
git clone https://git.99rst.org/PROJECT