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 3c00b19
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 @@ -156,7 +156,7 @@ public static function handleRawLatency(NetworkSession $session, int $upstream,
{
self::$latencyMap[$session] = $data = new LatencyData($upstream, $downstream);

$session->updatePing($data->getLatency());
$session->updatePing((int) ($data->getLatency() / 1000));
}

public static function getLatencyData(NetworkSession $session): ?LatencyData
Expand Down

0 comments on commit 3c00b19

Please sign in to comment.