mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-28 18:41:15 +00:00
fix cpu_count less than 2 error
This commit is contained in:
1 parent
aba05b32c9
commit
1cf8e1720d
1 file changed
+2
-1
+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