Skip to content

Commit 36e0c20

Browse files
committed
Remove redundant test on DOT_NUM_THREADS
Remove redundant test on `DOT_NUM_THREADS`, the test on the maximum is already done when reading the value from the configuration file.
1 parent fdc8352 commit 36e0c20

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/configimpl.l

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2029,17 +2029,12 @@ void Config::checkAndCorrect(bool quiet, const bool check)
20292029
}
20302030

20312031
//------------------------
2032-
// clip number of threads
20332032
int dotNumThreads = Config_getInt(DOT_NUM_THREADS);
2034-
if (dotNumThreads>512)
2035-
{
2036-
dotNumThreads=512;
2037-
}
2038-
else if (dotNumThreads<=0)
2033+
if (dotNumThreads<=0)
20392034
{
20402035
dotNumThreads=std::max(2u,std::thread::hardware_concurrency()+1);
2036+
Config_updateInt(DOT_NUM_THREADS,dotNumThreads);
20412037
}
2042-
Config_updateInt(DOT_NUM_THREADS,dotNumThreads);
20432038

20442039
//------------------------
20452040
// check plantuml path

0 commit comments

Comments
 (0)