From ed0400856990e42e1dc069516840d275a3a4e292 Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Sat, 2 Sep 2023 17:20:36 +0800 Subject: [PATCH] Remove incorrect warning --- server/uptime-calculator.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/server/uptime-calculator.js b/server/uptime-calculator.js index 158122028..e21a7bd1c 100644 --- a/server/uptime-calculator.js +++ b/server/uptime-calculator.js @@ -264,11 +264,6 @@ class UptimeCalculator { let divisionKey = date.unix(); if (! (divisionKey in this.minutelyUptimeDataList)) { - let last = this.minutelyUptimeDataList.getLastKey(); - if (last && last > divisionKey) { - log.warn("uptime-calc", "The system time has been changed? The uptime data may be inaccurate."); - } - this.minutelyUptimeDataList.push(divisionKey, { up: 0, down: 0, @@ -293,11 +288,6 @@ class UptimeCalculator { let dailyKey = date.unix(); if (!this.dailyUptimeDataList[dailyKey]) { - let last = this.dailyUptimeDataList.getLastKey(); - if (last && last > dailyKey) { - log.warn("uptime-calc", "The system time has been changed? The uptime data may be inaccurate."); - } - this.dailyUptimeDataList.push(dailyKey, { up: 0, down: 0,