X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/5042be1b72f9f3ed86b1242be8c93fad4ef87857..1e28f2478c6b4c3ba7ca566e4a43a7f5c293ce3c:/lib/lib.php diff --git a/lib/lib.php b/lib/lib.php index e283e836..3c70d1de 100644 --- a/lib/lib.php +++ b/lib/lib.php @@ -14,7 +14,7 @@ function getProcessorCount() { $sCPU = file_get_contents('/proc/cpuinfo'); preg_match_all('#processor\s+: [0-9]+#', $sCPU, $aMatches); - return sizeof($aMatches[0]); + return count($aMatches[0]); }