From aa693557b11c0d95e7bf3d4921cbaf3a0ee3ec98 Mon Sep 17 00:00:00 2001 From: Dries C Date: Mon, 4 Mar 2024 11:18:41 +0100 Subject: [PATCH] Ping nanoseconds to miliseconds --- ProxyNetworkInterface.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProxyNetworkInterface.php b/ProxyNetworkInterface.php index 1503048..a8378e2 100644 --- a/ProxyNetworkInterface.php +++ b/ProxyNetworkInterface.php @@ -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($data->getLatency() / 1000); } public static function getLatencyData(NetworkSession $session): ?LatencyData