Try to fix compilation error about the new threads default
This commit is contained in:
parent
9e8dae817d
commit
d8082b9db4
2 changed files with 2 additions and 2 deletions
|
@ -218,7 +218,7 @@ sub validate {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
|
|
||||||
# -j, --threads
|
# -j, --threads
|
||||||
die "Invalid value for --threads\n"
|
die "Invalid value for --threads: " . $self->threads . "\n"
|
||||||
if $self->threads < 1;
|
if $self->threads < 1;
|
||||||
|
|
||||||
# --layer-height
|
# --layer-height
|
||||||
|
|
|
@ -1293,7 +1293,7 @@ PrintConfigDef::PrintConfigDef()
|
||||||
def->min = 1;
|
def->min = 1;
|
||||||
def->max = 16;
|
def->max = 16;
|
||||||
{
|
{
|
||||||
int threads = boost::thread::hardware_concurrency();
|
unsigned int threads = boost::thread::hardware_concurrency();
|
||||||
if (threads == 0) threads = 2;
|
if (threads == 0) threads = 2;
|
||||||
def->default_value = new ConfigOptionInt(threads);
|
def->default_value = new ConfigOptionInt(threads);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue