Closed luevano closed 5 months ago
Thank you very much @luevano, I left a comment.
Thank you very much @luevano, I left a comment.
Thanks for the feedback, I changed the fix to add new fields and use those for the json, it now outputs as string value and contains the autoscaled value and the correct unit.
Added example outputs in the OP.
Closing reason: https://github.com/showwin/speedtest-go/issues/219#issuecomment-2169231000
Closes #219
~Implemented Marshaler for
ByteRate
,~ Added extra DL/UL fields toServer
so that the json output uses the specified format and scaling for the speed values.Example output (string) (for default format/unit):
Example output (string) (for binary-bytes unit option):
Before output (float) (always the raw float value):