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

feat: implement upload speed calculation and ETA estimation #2677

Merged
merged 4 commits into from
Sep 14, 2023
Merged

feat: implement upload speed calculation and ETA estimation #2677

merged 4 commits into from
Sep 14, 2023

Conversation

maeryo
Copy link
Contributor

@maeryo maeryo commented Aug 28, 2023

I have closed the previous pull request(#2675) and reworked on it.
I resolved conflicts regarding the newly merged commits.
Also, I optimized the previously implemented code and addressed several issues.


There has been a significant user demand for transfer speed and ETA for a while.
This Pull Request addresses that need.

Due to the characteristics of the tus protocol, where transfers are made in chunk units, there are frequent starts and stops, leading to a large variance in speed. To address this issue, we have applied a moving average to the speed calculations.

Additionally, to reduce the strain on the threads, the calculations were set to be executed at intervals. Below is a capture of the implementation.

image

@maeryo maeryo requested a review from o1egl as a code owner August 28, 2023 16:51
@maeryo
Copy link
Contributor Author

maeryo commented Aug 28, 2023

@o1egl
I've rewritten the code and submitted a pull request.
Please review.

thank you! 😄

@o1egl o1egl merged commit ecdd684 into filebrowser:master Sep 14, 2023
5 checks passed
langren1353 pushed a commit to langren1353/filebrowser-player that referenced this pull request Oct 18, 2023
langren1353 pushed a commit to langren1353/filebrowser-player that referenced this pull request Oct 18, 2023
langren1353 pushed a commit to langren1353/filebrowser-player that referenced this pull request Oct 18, 2023
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.

None yet

2 participants