mirror of
https://github.com/tcsenpai/swingmusic.git
synced 2025-06-06 19:25:34 +00:00
fix cpu_count less than 2 error
This commit is contained in:
parent
aba05b32c9
commit
1cf8e1720d
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user