forked from hans/Nominatim
make phpcs happy
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user