forked from hans/Nominatim
@@ -78,11 +78,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Assume we can steal all the cache memory in the box (unless told otherwise)
|
// Assume we can steal all the cache memory in the box (unless told otherwise)
|
||||||
$iCacheMemory = (isset($aCMDResult['osm2pgsql-cache'])?$aCMDResult['osm2pgsql-cache']:getCacheMemoryMB());
|
if (isset($aCMDResult['osm2pgsql-cache']))
|
||||||
if ($iCacheMemory > getTotalMemoryMB())
|
{
|
||||||
|
$iCacheMemory = $aCMDResult['osm2pgsql-cache'];
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
$iCacheMemory = getCacheMemoryMB();
|
$iCacheMemory = getCacheMemoryMB();
|
||||||
echo "WARNING: resetting cache memory to $iCacheMemory\n";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$aDSNInfo = DB::parseDSN(CONST_Database_DSN);
|
$aDSNInfo = DB::parseDSN(CONST_Database_DSN);
|
||||||
|
|||||||
Reference in New Issue
Block a user