This commit is contained in:
bjorn 2024-01-05 14:24:49 -08:00
parent 1701409763
commit b32ac1c5a5
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ bool lovrThreadModuleInit(int32_t workers) {
map_init(&state.channels, 0);
uint32_t cores = os_get_core_count();
if (workers < 0) workers = cores + workers;
if (workers < 0) workers += cores;
workers = MAX(workers, 0);
job_init(workers);