2
0
mirror of https://github.com/mbusb/multibootusb synced 2024-11-01 15:40:16 +00:00

reduce redundant function calls

This commit is contained in:
Alin Trăistaru 2017-04-26 13:59:17 +03:00
parent 918ebfd35d
commit 925e2fc12d

View File

@ -140,9 +140,8 @@ def install_progress():
thrd.start()
pbar = progressbar.ProgressBar(maxval=100).start() # bar = progressbar.ProgressBar(redirect_stdout=True)
while thrd.is_alive():
current_size = details(config.usb_disk)['size_used']
current_size = shutil.disk_usage(usb_details['mount_point'])[1]
percentage = int((current_size / final_size) * 100)
# log("Install at " + str(percentage) + "%")
if percentage > 100:
percentage = 100
config.percentage = percentage