Maybe the Travis CI server has more than 16 cores?
This commit is contained in:
parent
d8082b9db4
commit
5dc8a0808e
@ -218,7 +218,7 @@ sub validate {
|
|||||||
my $self = shift;
|
my $self = shift;
|
||||||
|
|
||||||
# -j, --threads
|
# -j, --threads
|
||||||
die "Invalid value for --threads: " . $self->threads . "\n"
|
die "Invalid value for --threads\n"
|
||||||
if $self->threads < 1;
|
if $self->threads < 1;
|
||||||
|
|
||||||
# --layer-height
|
# --layer-height
|
||||||
|
@ -1291,11 +1291,9 @@ PrintConfigDef::PrintConfigDef()
|
|||||||
def->cli = "threads|j=i";
|
def->cli = "threads|j=i";
|
||||||
def->readonly = true;
|
def->readonly = true;
|
||||||
def->min = 1;
|
def->min = 1;
|
||||||
def->max = 16;
|
|
||||||
{
|
{
|
||||||
unsigned int threads = boost::thread::hardware_concurrency();
|
unsigned int threads = boost::thread::hardware_concurrency();
|
||||||
if (threads == 0) threads = 2;
|
def->default_value = new ConfigOptionInt(threads > 0 ? threads : 2);
|
||||||
def->default_value = new ConfigOptionInt(threads);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
def = this->add("toolchange_gcode", coString);
|
def = this->add("toolchange_gcode", coString);
|
||||||
|
Loading…
Reference in New Issue
Block a user