diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2016-11-27 20:31:21 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2016-12-08 16:52:42 +0300 |
commit | 5dc8a0808ef102e06254bdde8540d22ef0fff4b2 (patch) | |
tree | 4d9b2c51799971f48d54796f765cd820ec72fbb1 /xs | |
parent | d8082b9db43012a88ae739e7c46b129da87fa1f9 (diff) |
Maybe the Travis CI server has more than 16 cores?
Diffstat (limited to 'xs')
-rw-r--r-- | xs/src/libslic3r/PrintConfig.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/xs/src/libslic3r/PrintConfig.cpp b/xs/src/libslic3r/PrintConfig.cpp index 745976d46..746cf7f1d 100644 --- a/xs/src/libslic3r/PrintConfig.cpp +++ b/xs/src/libslic3r/PrintConfig.cpp @@ -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); |