Skip to content

Commit e280756

Browse files
committed
Use microseconds for ping
1 parent a18184e commit e280756

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ProxyNetworkInterface.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public function __construct(PluginBase $plugin, int $port, ?string $composerPath
154154

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

159159
$session->updatePing($data->getLatency());
160160
}

0 commit comments

Comments
 (0)