From d877573830529d503323de1c13e95f68f822343c Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Sun, 28 Apr 2024 01:23:08 -0700 Subject: [PATCH] update --- ee/tabby-webserver/src/cron/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ee/tabby-webserver/src/cron/mod.rs b/ee/tabby-webserver/src/cron/mod.rs index 73992298fcd4..c9a0f06ede6a 100644 --- a/ee/tabby-webserver/src/cron/mod.rs +++ b/ee/tabby-webserver/src/cron/mod.rs @@ -34,10 +34,10 @@ pub async fn run_cron( fn every_two_hours() -> String { let mut rng = rand::thread_rng(); - format!("{} {} */2 * * * *", rng.gen_range(0..59), rng.gen_range(0..59)) + format!("{} {} */2 * * *", rng.gen_range(0..59), rng.gen_range(0..59)) } fn every_ten_minutes() -> String { let mut rng = rand::thread_rng(); - format!("{} {} */10 * * * *", rng.gen_range(0..59), rng.gen_range(0..59)) + format!("{} */10 * * * *", rng.gen_range(0..59)) } \ No newline at end of file