X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/29e78780e5cc702a7ee7facfef4d51ef9aaebfe9..ee54ebfe77ef4c52a51c5326952f6a98299a3a68:/lib/lib.php?ds=sidebyside diff --git a/lib/lib.php b/lib/lib.php index e283e836..0b939da4 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]); } @@ -426,32 +426,6 @@ function javascript_renderData($xVal, $iOptions = 0) } -function _debugDumpGroupedSearches($aData, $aTokens) -{ - $aWordsIDs = array(); - if ($aTokens) { - foreach ($aTokens as $sToken => $aWords) { - if ($aWords) { - foreach ($aWords as $aToken) { - $aWordsIDs[$aToken['word_id']] = - '#'.$sToken.'('.$aToken['word_id'].')#'; - } - } - } - } - echo '
rank | Name Tokens | Name Not | '; - echo 'Address Tokens | Address Not | country | operator | '; - echo 'class | type | postcode | housenumber |
---|