]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/chainlint.pl
Merge branch 'ah/chainlint-cpuinfo-parse-fix'
[thirdparty/git.git] / t / chainlint.pl
index 4e47e808d017c274b3fecc39ad6f7fe7026ae257..e966412999ac9e4d7279505275ed1480e04f5b2a 100755 (executable)
@@ -709,7 +709,7 @@ sub ncores {
        # Windows
        return $ENV{NUMBER_OF_PROCESSORS} if exists($ENV{NUMBER_OF_PROCESSORS});
        # Linux / MSYS2 / Cygwin / WSL
-       do { local @ARGV='/proc/cpuinfo'; return scalar(grep(/^processor\s*:/, <>)); } if -r '/proc/cpuinfo';
+       do { local @ARGV='/proc/cpuinfo'; return scalar(grep(/^processor[\s\d]*:/, <>)); } if -r '/proc/cpuinfo';
        # macOS & BSD
        return qx/sysctl -n hw.ncpu/ if $^O =~ /(?:^darwin$|bsd)/;
        return 1;