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:
parent
918ebfd35d
commit
925e2fc12d
@ -140,9 +140,8 @@ def install_progress():
|
|||||||
thrd.start()
|
thrd.start()
|
||||||
pbar = progressbar.ProgressBar(maxval=100).start() # bar = progressbar.ProgressBar(redirect_stdout=True)
|
pbar = progressbar.ProgressBar(maxval=100).start() # bar = progressbar.ProgressBar(redirect_stdout=True)
|
||||||
while thrd.is_alive():
|
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)
|
percentage = int((current_size / final_size) * 100)
|
||||||
# log("Install at " + str(percentage) + "%")
|
|
||||||
if percentage > 100:
|
if percentage > 100:
|
||||||
percentage = 100
|
percentage = 100
|
||||||
config.percentage = percentage
|
config.percentage = percentage
|
||||||
|
Loading…
Reference in New Issue
Block a user