From cf840e4936aaa65baea1cfd4a1a198ccb0c54bee Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sat, 17 Jan 2026 12:38:57 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- server/model/monitor.js | 4 ++-- src/pages/EditMonitor.vue | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/server/model/monitor.js b/server/model/monitor.js index 70e157d68..2a23abd2f 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -1772,13 +1772,13 @@ class Monitor extends BeanModel { if (isNaN(delay) || delay < 0) { throw new Error("Screenshot delay must be a non-negative number"); } - + // Must not exceed 0.8 * timeout (page.goto timeout is interval * 1000 * 0.8) const maxDelayFromTimeout = this.interval * 1000 * 0.8; if (delay >= maxDelayFromTimeout) { throw new Error(`Screenshot delay must be less than ${maxDelayFromTimeout}ms (0.8 × interval)`); } - + // Must not exceed 0.5 * interval to prevent blocking next check const maxDelayFromInterval = this.interval * 1000 * 0.5; if (delay >= maxDelayFromInterval) { diff --git a/src/pages/EditMonitor.vue b/src/pages/EditMonitor.vue index 7d253f60f..39b1f12b8 100644 --- a/src/pages/EditMonitor.vue +++ b/src/pages/EditMonitor.vue @@ -279,7 +279,11 @@ />