Skip to content

Commit

Permalink
nemo-thumbnails.c: Always respect the thumbnail thread count if
Browse files Browse the repository at this point in the history
the user sets it explicitly.

3452f4f fixed a situation where the threadcount could end up
being 0, but would also override the user preference.
  • Loading branch information
mtwebster committed May 21, 2024
1 parent d1d6bd6 commit 8d3669d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libnemo-private/nemo-thumbnails.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ get_max_threads (void) {
max_threads = pref;
}

max_threads = CLAMP (max_threads, 1, MAX ((num_processors / 2), 1));
max_threads = MAX (1, max_threads);

#if DEBUG_THREADS
g_message ("Thumbnailer threads: %d (setting: %d, system count: %d)", max_threads, pref, num_processors);
Expand Down

0 comments on commit 8d3669d

Please sign in to comment.