-
Notifications
You must be signed in to change notification settings - Fork 115
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
json output never uses Mbps format for speeds #219
Comments
Looks like |
Hi, @luevano, I think we should keep the status quo, as the purpose of the current changes is to be consistent with Ookla.
I want to explain why it is never called on json. // Cited from Ookla speedtest It has also been explained here: #195 So, this is what we need to clarify:
Additional content reference(private content has been removed):
{
"servers": [
{
"dl_speed": 15220296.163629018,
"ul_speed": 2605123.5026477408,
"test_duration": {
"ping": 2504038600,
"download": 10050985300,
"upload": 13714513500,
"total": 26269537400
},
"packet_loss": { "sent": 317, "dup": 0, "max": 332 }
}
]
}
{
"type": "result",
"ping": { "jitter": 2.895, "latency": 28.122, "low": 27.453, "high": 37.423 },
"download": {
"bandwidth": 12968587,
"bytes": 187972978,
"elapsed": 15012,
"latency": { "iqm": 32.207, "low": 20.373, "high": 278.771, "jitter": 17.591 }
},
"upload": {
"bandwidth": 10971637,
"bytes": 43506137,
"elapsed": 4025,
"latency": { "iqm": 41.782, "low": 21.085, "high": 159.054, "jitter": 19.7 }
}
}
Currently, the bandwidth unit of both are consistent(bytes per sec) in json output, except that speedtest-go uses float type. |
Got it, wasn't aware of the "requirements". This and the PR can be closed then. |
Anyway, thank you for your PR. Hope next! |
Suddenly after some update I stopped getting speed outputs in Mbps and instead I'm receiving something else (not sure which of the 4 it is).
Outputs before:
DL: 304.5242
UL: 310.7918
Outputs currently:
DL: 37333361.36173324
UL: 37774782.821372464
I tried using all 4 different
--unit
options and also just doing "Mbps", because according to this it should use the default Mbps format:speedtest-go/speedtest.go
Line 54 in 8e02144
speedtest-go/speedtest.go
Lines 292 to 305 in 8e02144
speedtest-go/speedtest/unit.go
Line 58 in 8e02144
Speedtest version (from AUR):
speedtest-go v1.7.7 git-dev built at unknown
The text was updated successfully, but these errors were encountered: