mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
fix cpu_count less than 2 error
This commit is contained in:
+2
-1
@@ -238,7 +238,8 @@ def get_image(_map: tuple[str, Album]):
|
||||
pass
|
||||
|
||||
|
||||
CPU_COUNT = os.cpu_count() // 2
|
||||
_cpu_count = os.cpu_count()
|
||||
CPU_COUNT = _cpu_count // 2 if _cpu_count > 2 else _cpu_count
|
||||
|
||||
|
||||
class ProcessTrackThumbnails:
|
||||
|
||||
Reference in New Issue
Block a user