diff --git a/apps/api/src/routes/internal.ts b/apps/api/src/routes/internal.ts index 9dbba43..373238e 100644 --- a/apps/api/src/routes/internal.ts +++ b/apps/api/src/routes/internal.ts @@ -48,7 +48,7 @@ export const internal = new Elysia({ prefix: "/internal", detail: { hide: true } ) last ON true WHERE m.enabled = true AND (last.checked_at IS NULL - OR last.checked_at < now() - (m.interval_s || ' seconds')::interval - interval '200ms') + OR last.checked_at < now() - (m.interval_s || ' seconds')::interval) `; return monitors; }) diff --git a/apps/monitor/src/main.rs b/apps/monitor/src/main.rs index 05ac45a..39cf5c0 100644 --- a/apps/monitor/src/main.rs +++ b/apps/monitor/src/main.rs @@ -41,6 +41,6 @@ async fn main() -> Result<()> { Ok(n) => { if n > 0 { info!("Spawned {n} checks"); } }, Err(e) => error!("Check cycle failed: {e}"), } - sleep(Duration::from_millis(50)).await; + sleep(Duration::from_millis(500)).await; } }