|
|
@ -11,6 +11,7 @@ const { tcping, ping, dnsResolve, checkCertificate, checkStatusCode, getTotalCli |
|
|
|
const { R } = require("redbean-node"); |
|
|
|
const { BeanModel } = require("redbean-node/dist/bean-model"); |
|
|
|
const { Notification } = require("../notification"); |
|
|
|
const { demoMode } = require("../server"); |
|
|
|
const version = require("../../package.json").version; |
|
|
|
|
|
|
|
/** |
|
|
@ -334,6 +335,13 @@ class Monitor extends BeanModel { |
|
|
|
previousBeat = bean; |
|
|
|
|
|
|
|
if (! this.isStop) { |
|
|
|
|
|
|
|
if (demoMode) { |
|
|
|
if (beatInterval < 20) { |
|
|
|
beatInterval = 20; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
this.heartbeatInterval = setTimeout(beat, beatInterval * 1000); |
|
|
|
} |
|
|
|
|
|
|
|