mirror of https://github.com/louislam/uptime-kuma
Update comment on recurring-interval type maintenance
Co-authored-by: Frank Elsinga <frank@elsinga.de>pull/4939/head
parent
4750bd1e36
commit
7f64badb06
|
@ -411,7 +411,8 @@ class Maintenance extends BeanModel {
|
||||||
} else if (!this.strategy.startsWith("recurring-")) {
|
} else if (!this.strategy.startsWith("recurring-")) {
|
||||||
this.cron = "";
|
this.cron = "";
|
||||||
} else if (this.strategy === "recurring-interval") {
|
} else if (this.strategy === "recurring-interval") {
|
||||||
this.cron = "* * * * *"; // Because it is interval, it will be calculated in the run function
|
// For intervals, the pattern is calculated in the run function as the interval-option is set
|
||||||
|
this.cron = "* * * * *";
|
||||||
this.duration = this.calcDuration();
|
this.duration = this.calcDuration();
|
||||||
log.debug("maintenance", "Cron: " + this.cron);
|
log.debug("maintenance", "Cron: " + this.cron);
|
||||||
log.debug("maintenance", "Duration: " + this.duration);
|
log.debug("maintenance", "Duration: " + this.duration);
|
||||||
|
|
Loading…
Reference in New Issue