From 1683c2980eaf2126625a5d32f86fdab1b625b8a4 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Fri, 21 Nov 2025 20:06:11 +0000 Subject: [PATCH] round port resonse time --- server/src/services/infrastructure/NetworkService.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/src/services/infrastructure/NetworkService.ts b/server/src/services/infrastructure/NetworkService.ts index 1382c25db..ba43c5630 100644 --- a/server/src/services/infrastructure/NetworkService.ts +++ b/server/src/services/infrastructure/NetworkService.ts @@ -250,7 +250,7 @@ class NetworkService implements INetworkService { socket.on("connect", () => { socket.destroy(); - const duration = performance.now() - start; + const duration = Math.round(performance.now() - start); resolve({ status: "up", responseTime: duration, @@ -260,7 +260,7 @@ class NetworkService implements INetworkService { socket.on("error", (err) => { socket.destroy(); - const duration = performance.now() - start; + const duration = Math.round(performance.now() - start); resolve({ status: "down", responseTime: duration, @@ -270,7 +270,7 @@ class NetworkService implements INetworkService { socket.on("timeout", () => { socket.destroy(); - const duration = performance.now() - start; + const duration = Math.round(performance.now() - start); resolve({ status: "down", responseTime: duration,