mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
Fix cpu count multiprocessing errors pt.2
This commit is contained in:
+1
-1
@@ -132,7 +132,7 @@ class IndexTracks:
|
||||
config = UserConfig()
|
||||
|
||||
# Create process pool with worker function
|
||||
with Pool(processes=math.floor(cpu_count() / 2)) as pool:
|
||||
with Pool(processes=max(1, cpu_count() // 2)) as pool:
|
||||
worker = partial(self._process_file, config=config)
|
||||
|
||||
# Process files and track progress
|
||||
|
||||
Reference in New Issue
Block a user