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

Running Average of results. #4

Closed
kgorinson opened this issue Aug 15, 2017 · 1 comment
Closed

Running Average of results. #4

kgorinson opened this issue Aug 15, 2017 · 1 comment

Comments

@kgorinson
Copy link

Hey I didn't know where else to post this. I wanted to mention that I used your script and created a companion script that calculates a running average of the speed tests.

Here's the repo:
https://github.com/kgor93/SpeedTest-Average

And here's what the output looks like. Thanks!

`root@ny:~# ./script.sh
Running speedtest now. Please wait...
Current - 1 run number
Ping: 12.646
Download: 924.59 MBps
Upload: 6.91 MBps

Average after - 1 runs
Ping: 12.65 ms
Download: 924.59 Mbps
Upload: 6.91 Mbps

Running speedtest now. Please wait...
Current - 2 run number
Ping: 12.615
Download: 917.18 MBps
Upload: 5.62 MBps

Average after - 2 runs
Ping: 12.63 ms
Download: 920.89 Mbps
Upload: 6.27 Mbps

Running speedtest now. Please wait...
Current - 3 run number
Ping: 18.183
Download: 924.03 MBps
Upload: 8.68 MBps

Average after - 3 runs
Ping: 14.48 ms
Download: 921.93 Mbps
Upload: 7.07 Mbps

Running speedtest now. Please wait...
Current - 4 run number
Ping: 12.51
Download: 417.67 MBps
Upload: 20.24 MBps

Average after - 4 runs
Ping: 13.99 ms
Download: 795.87 Mbps
Upload: 10.36 Mbps

Running speedtest now. Please wait...
Current - 5 run number
Ping: 12.527
Download: 779.07 MBps
Upload: 5.89 MBps

Average after - 5 runs
Ping: 13.70 ms
Download: 792.51 Mbps
Upload: 9.47 Mbps
----------------------`

@rsvp
Copy link
Owner

rsvp commented Aug 15, 2017

hi @kgor93 Thanks for the acknowledgement.

Your README.md says your script:

Doesn't work on Mac OS X for some reason

May I suggest adding this to the very top:

#!/usr/bin/env bash

It is called a shebang: https://en.wikipedia.org/wiki/Shebang_(Unix)
for more details. And be sure the file's permissions includes executable.

Good luck for your repo!

@rsvp rsvp closed this as completed Aug 15, 2017
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

No branches or pull requests

2 participants