mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-28 11:51:15 +00:00
Fix cpu count multiprocessing errors pt.2
This commit is contained in:
1 parent
2b59c07dc1
commit
f9c1b0fa4b
1 file changed
+1
-1
+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