Skip to content

Commit b3faa22

Browse files
authored
Bugfix: API download speed is reported as upload speed (alexjustesen#480)
1 parent 4878ef8 commit b3faa22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/API/Speedtest/GetLatestController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __invoke()
3030
'id' => $latest->id,
3131
'ping' => $latest->ping,
3232
'download' => ! blank($latest->download) ? toBits(convertSize($latest->download)) : null,
33-
'upload' => ! blank($latest->download) ? toBits(convertSize($latest->download)) : null,
33+
'upload' => ! blank($latest->upload) ? toBits(convertSize($latest->upload)) : null,
3434
'server_id' => $latest->server_id,
3535
'server_host' => $latest->server_host,
3636
'server_name' => $latest->server_name,

0 commit comments

Comments
 (0)