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

Return the total amount of downloaded/uploaded bytes #627

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

berrnd
Copy link

@berrnd berrnd commented May 24, 2024

Resubmit of #608

Hi and first thanks a lot for LibreSpeed!

I wanted to show how much data volume the upload / download test used. So I've added 2 properties to the speedtest_worker.js status data object:

  • dlBytes: Total number of bytes downloaded
  • ulBytes: Total number of bytes uploaded

This also includes data during dlGraceTime / ulGraceTime.

Could look like that (a live example is available here):

firefox_2024-04-03_20-11-11.mp4

@sstidl
Copy link
Collaborator

sstidl commented May 25, 2024

hi @berrnd

thank you for resubmitting.
can you also provide the changes needed to actually use the new feature?
i briefly looked at your code at the example but i am not the pro in reverse engineering ;-)

Based on `example-singleServer-pretty.html`
@berrnd
Copy link
Author

berrnd commented May 25, 2024

I've added a new example example-singleServer-showUsedDataVolume.html (based on / an extended copy of example-singleServer-pretty.html) to showcase displaying the data amount used during the download / upload speed test.

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