Skip to content

Commit

Permalink
Update comment on recurring-interval type maintenance
Browse files Browse the repository at this point in the history
Co-authored-by: Frank Elsinga <[email protected]>
  • Loading branch information
buzzinJohnnyBoi and CommanderStorm authored Jul 14, 2024
1 parent 4750bd1 commit 7f64bad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/model/maintenance.js
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,8 @@ class Maintenance extends BeanModel {
} else if (!this.strategy.startsWith("recurring-")) {
this.cron = "";
} 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();
log.debug("maintenance", "Cron: " + this.cron);
log.debug("maintenance", "Duration: " + this.duration);
Expand Down

0 comments on commit 7f64bad

Please sign in to comment.