Multithreading yay

This commit is contained in:
2022-08-31 00:18:23 +02:00
parent 087c6c6f9a
commit e28f75043c
5 changed files with 46 additions and 22 deletions

View File

@ -157,3 +157,11 @@ def LoadLocale(Lang):
def IsLightRun(File, LimitFiles):
return False if LimitFiles == False or File in LimitFiles else True
def PrintPercentDots(Percent):
Cur, Tot = Percent
CalcCur = int((Cur/Tot)*100)
if CalcCur % 10 == 0:
CalcPrev = int((Cur-1/Tot)*100)
if CalcPrev % 10 != 0:
print('.', end='')