From 7110c6d30ed75f49e7987358397af1da8699ac80 Mon Sep 17 00:00:00 2001 From: filippolauria <filippo.lauria@iit.cnr.it> Date: Tue, 11 Mar 2025 11:55:27 +0100 Subject: [PATCH] added binding between ping model parameters and the new ping implementation --- server/model/monitor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/model/monitor.js b/server/model/monitor.js index 86f53f3b3..40ca4e384 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -635,7 +635,7 @@ class Monitor extends BeanModel { bean.status = UP; } else if (this.type === "ping") { - bean.ping = await ping(this.hostname, this.packetSize); + bean.ping = await ping(this.hostname, this.ping_count, "", this.ping_numeric, this.packetSize, this.ping_deadline, this.ping_timeout); bean.msg = ""; bean.status = UP; } else if (this.type === "push") { // Type: Push @@ -707,7 +707,7 @@ class Monitor extends BeanModel { bean.msg = res.data.response.servers[0].name; try { - bean.ping = await ping(this.hostname, this.packetSize); + bean.ping = await ping(this.hostname, PING_COUNT_DEFAULT, "", true, this.packetSize, PING_DEADLINE_DEFAULT, PING_TIMEOUT_DEFAULT); } catch (_) { } } else { throw new Error("Server not found on Steam");