]> git.openstreetmap.org Git - nominatim.git/blobdiff - utils/setup.php
Merge remote-tracking branch 'upstream/master'
[nominatim.git] / utils / setup.php
index e2810737f6f2bb46da2ca46e98c345afdaa8c418..501ad3f25227ab822beec5b173cab844515524c9 100755 (executable)
@@ -62,7 +62,10 @@ if ($aCMDResult['import-data'] || $aCMDResult['all']) {
 
 
 // by default, use all but one processor, but never more than 15.
-$iInstances = isset($aCMDResult['threads'])?$aCMDResult['threads']:(min(16,getProcessorCount())-1);
+$iInstances = isset($aCMDResult['threads'])
+              ? $aCMDResult['threads']
+              : (min(16, getProcessorCount()) - 1);
+
 if ($iInstances < 1) {
     $iInstances = 1;
     warn("resetting threads to $iInstances");