mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-08 14:45:43 +01:00
fix math bug with numthreads computation
git-svn-id: svn://localhost/ardour2/branches/3.0@7297 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
0f5bdd666f
commit
ea2f5f170b
1 changed files with 3 additions and 3 deletions
|
|
@ -63,11 +63,11 @@ Graph::Graph (Session & session)
|
|||
int pu = Config->get_processor_usage ();
|
||||
|
||||
if (pu < 0) {
|
||||
/* use "pu" less cores for DSP than appear to be available
|
||||
/* pu is negative: use "pu" less cores for DSP than appear to be available
|
||||
*/
|
||||
|
||||
if (pu < num_threads) {
|
||||
num_threads += pu; // pu is negative
|
||||
if (-pu < num_threads) {
|
||||
num_threads += pu;
|
||||
} else {
|
||||
num_threads = 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue