]> git.openstreetmap.org Git - nominatim.git/commitdiff
Merge remote-tracking branch 'upstream/master'
authorSarah Hoffmann <lonvia@denofr.de>
Sat, 27 May 2017 13:00:17 +0000 (15:00 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sat, 27 May 2017 13:00:17 +0000 (15:00 +0200)
1  2 
CMakeLists.txt
lib/lib.php
utils/update.php

diff --cc CMakeLists.txt
Simple merge
diff --cc lib/lib.php
Simple merge
index 475e583690e9e71a8585322630181433c9c999ab,b106c56740907a6c225127557e282cdcb392f80d..ad6274825f074aab360a68414de039ce9e42d32c
@@@ -36,7 -37,7 +37,13 @@@ $aCMDOption
    );
  getCmdOpt($_SERVER['argv'], $aCMDOptions, $aResult, true, true);
  
--if (!isset($aResult['index-instances'])) $aResult['index-instances'] = 1;
++if (!isset($aResult['index-instances'])) {
++    if (getLoadAverage() < 24)
++        $aResult['index-instances'] = 2;
++    else
++        $aResult['index-instances'] = 1;
++}
++
  if (!isset($aResult['index-rank'])) $aResult['index-rank'] = 0;
  
  date_default_timezone_set('Etc/UTC');