X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/ab54a4b8d7ba75f7a1ecd18de34bbce5af291b5b..9b76a8ffb4c4cd13628d85c00cf286382970b149:/lib/lib.php diff --git a/lib/lib.php b/lib/lib.php index d7ccf2d2..fa71d296 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]); }