bitwarden

This commit is contained in:
jaydee
2024-09-24 20:00:39 +02:00
parent 0e0c8ccd5a
commit 5a923752db

View File

@@ -176,6 +176,7 @@ if _ACTION == "join":
# for progress in ff.run_command_with_progress(): # for progress in ff.run_command_with_progress():
# pbar.update(progress - pbar.n) # pbar.update(progress - pbar.n)
with tqdm(total=100, position=1, desc="Join") as pbar: with tqdm(total=100, position=1, desc="Join") as pbar:
position=1
while True: while True:
#pbar.update() #pbar.update()
@@ -184,8 +185,9 @@ if _ACTION == "join":
cur_size = file_stats.st_size cur_size = file_stats.st_size
final_size final_size
cur_stat = (cur_size / final_size) * 100 cur_stat = (cur_size / final_size) * 100
print(int(cur_stat), pbar.position)
pass pbar.update(cur_stat - position)
position = cur_stat
except: except:
pass pass