Skip to content

Commit

Permalink
Use microseconds for ping
Browse files Browse the repository at this point in the history
  • Loading branch information
dries-c committed Mar 4, 2024
1 parent 81ac958 commit 663ed44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ProxyNetworkInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public function __construct(PluginBase $plugin, int $port, ?string $composerPath

public static function handleRawLatency(NetworkSession $session, int $upstream, int $downstream): void
{
self::$latencyMap[$session] = $data = new LatencyData($upstream, $downstream);
self::$latencyMap[$session] = $data = new LatencyData((int) ($upstream / 1000), (int) ($downstream / 1000));

$session->updatePing($data->getLatency());
}
Expand Down

0 comments on commit 663ed44

Please sign in to comment.