mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-01-31 00:36:16 +00:00
Remove incorrect warning
This commit is contained in:
parent
f3517bc08d
commit
ed04008569
1 changed files with 0 additions and 10 deletions
|
@ -264,11 +264,6 @@ class UptimeCalculator {
|
||||||
let divisionKey = date.unix();
|
let divisionKey = date.unix();
|
||||||
|
|
||||||
if (! (divisionKey in this.minutelyUptimeDataList)) {
|
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, {
|
this.minutelyUptimeDataList.push(divisionKey, {
|
||||||
up: 0,
|
up: 0,
|
||||||
down: 0,
|
down: 0,
|
||||||
|
@ -293,11 +288,6 @@ class UptimeCalculator {
|
||||||
let dailyKey = date.unix();
|
let dailyKey = date.unix();
|
||||||
|
|
||||||
if (!this.dailyUptimeDataList[dailyKey]) {
|
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, {
|
this.dailyUptimeDataList.push(dailyKey, {
|
||||||
up: 0,
|
up: 0,
|
||||||
down: 0,
|
down: 0,
|
||||||
|
|
Loading…
Add table
Reference in a new issue