Skip to content

Result in API response is not calculated in Mbps or Gbps in version 0.16.x #1176

@mannbadal

Description

@mannbadal

Describe the bug
Result in API response is not calculated in Mbps or Gbps in version 0.16.x but showing in bps

To Reproduce
Steps to reproduce the behaviour:

  1. Install version 0.16.x
  2. Schedule a speedtest
  3. GET /api/speedtest/latest
  4. Download and Upload speed are in bps

Expected behavior
It should show rounded results in Mbps or Gbps with 2 decimal values

Environment (please complete the following information):

  • OS: Docker
  • Architecture: arm64
  • Browser: Chrome
  • Version 0.16.3

API response
v0.16.3 shows

{"message":"ok","data":{"id":1,"ping":264.839,"download":126109704,"upload":62118624}

v0.15.5 shows (Expected)

{"message":"ok","data":{"id":1,"ping":264.839,"download":126.1096,"upload":62.1184}

Screenshot
image

Logs
N/A

Additional context
Systems like Organizr etc do not calculate results but relies on what is provided within API

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions