mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Maybe the Travis CI server has more than 16 cores?
This commit is contained in:
committed by
bubnikv
parent
d8082b9db4
commit
5dc8a0808e
@@ -1291,11 +1291,9 @@ PrintConfigDef::PrintConfigDef()
|
||||
def->cli = "threads|j=i";
|
||||
def->readonly = true;
|
||||
def->min = 1;
|
||||
def->max = 16;
|
||||
{
|
||||
unsigned int threads = boost::thread::hardware_concurrency();
|
||||
if (threads == 0) threads = 2;
|
||||
def->default_value = new ConfigOptionInt(threads);
|
||||
def->default_value = new ConfigOptionInt(threads > 0 ? threads : 2);
|
||||
}
|
||||
|
||||
def = this->add("toolchange_gcode", coString);
|
||||
|
||||
Reference in New Issue
Block a user