Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show download speed with the correct units #316

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

arobison203
Copy link

These speeds are in Megabits per second, a capital B signified Megabytes per second. This fixes the discrepancy.

Copy link
Owner

@kubilus1 kubilus1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed that this should be updated. A few suggestions to add. Thanks!

Comment on lines 230 to +233
cur_activity['pcnt_done'] = pcnt_done
cur_activity['MBps'] = MBps
print(f"\r{pcnt_done:.2f}% {MBps:.2f} MBps", end='')
cur_activity['status'] = f"Downloading {self.dl_url}\n{pcnt_done:.2f}% {MBps:.2f} MBps"
print(f"\r{pcnt_done:.2f}% {MBps:.2f} Mbps", end='')
cur_activity['status'] = f"Downloading {self.dl_url}\n{pcnt_done:.2f}% {MBps:.2f} Mbps"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree this is confusing. I think the rest of the references should also be updated to reflect this.

Also, I think the lines:

        cur_activity['pcnt_done'] = pcnt_done
        cur_activity['MBps'] = MBps

Can go away if the corresponding lines (350,351) in config_ui.py are removed as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants