pcbnew: Fix single-net connectivity

Ensure that changes affecting fewer than 4 nets still get updates in the
ratsnest.
This commit is contained in:
Seth Hillbrand 2018-10-18 17:11:58 -07:00
parent ea1bc4300d
commit e1f30a3b38
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ void CONNECTIVITY_DATA::updateRatsnest()
// We don't want to spin up a new thread for fewer than 8 nets (overhead costs)
size_t parallelThreadCount = std::min<size_t>(
std::max<size_t>( std::thread::hardware_concurrency(), 2 ),
( dirty_nets.size() + 4 ) / 8 );
( dirty_nets.size() + 7 ) / 8 );
// This prevents generating a thread for point while routing as we are only
// updating the ratsnest on a single net