From b44f6e4af2d82b028fdfa345f5e3d8bb5b27ffc0 Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Tue, 8 Aug 2023 18:29:48 +0800 Subject: [PATCH] Fix #3539 --- 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 5b0481fdb..0eab5732d 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -434,7 +434,7 @@ class Monitor extends BeanModel { const options = { url: this.url, method: (this.method || "get").toLowerCase(), - timeout: this.timeout, + timeout: this.timeout * 1000, headers: { "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9", "User-Agent": "Uptime-Kuma/" + version, @@ -654,7 +654,7 @@ class Monitor extends BeanModel { } let res = await axios.get(steamApiUrl, { - timeout: this.timeout, + timeout: this.timeout * 1000, headers: { "Accept": "*/*", "User-Agent": "Uptime-Kuma/" + version,