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

autoupdater: update download progress display less frequently #274

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

Conversation

neocturne
Copy link
Member

Updating the "XXXXX / XXXXX KiB" display for every run of recv_image_cb() is a significant bottleneck on slow consoles. This was reported for a device using a 9600 Baud serial console, but the slowdown is noticeable even on a 115200 Baud console, especially when the network is fast.

Replace the output with a "XX.X / XX.X MiB" display and only update it every 0.1 MiB to fix the issue.

Closes #273

Updating the "XXXXX / XXXXX KiB" display for every run of
recv_image_cb() is a significant bottleneck on slow consoles. This was
reported for a device using a 9600 Baud serial console, but the slowdown
is noticeable even on a 115200 Baud console, especially when the network
is fast.

Replace the output with a "XX.X / XX.X MiB" display and only update it
every 0.1 MiB to fix the issue.

Closes freifunk-gluon#273
@rotanid
Copy link
Member

rotanid commented Apr 21, 2024

@neocturne @kpanic23 what about this, has this been tested already?

@neocturne
Copy link
Member Author

@neocturne @kpanic23 what about this, has this been tested already?

I have tested it on one of my devices with a 115200 Baud UART, but it would be great to hear how well it works at 9600 Baud.

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.

autoupdater: extremely slow image download on HiveAP
2 participants