Skip to content

Commit

Permalink
1.2.0
Browse files Browse the repository at this point in the history
- auto set max thread count
  • Loading branch information
Majjcom committed Feb 27, 2022
1 parent 50e0706 commit 5fb3705
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ncmdump.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
from multiprocessing import cpu_count
import threading
import binascii
import struct
Expand Down Expand Up @@ -134,13 +135,14 @@ def main():
process = [0, 0, 0]
if not os.path.exists('./unlock'):
os.mkdir('./unlock')
maxCount = cpu_count()
while True:
count = 0
tmp = None
for key in musicFiles:
if musicFiles[key] == 1:
count += 1
if count < 5 and musicFiles[key] == 0:
if count < maxCount and musicFiles[key] == 0:
upperPrint('解密中...\t{}'.format(key))
musicFiles[key] = 1
Dumper(key, musicFiles).start()
Expand Down

0 comments on commit 5fb3705

Please sign in to comment.