From c986bb861a4a9d0186684fa77a839ff2433cce7c Mon Sep 17 00:00:00 2001 From: cannorin Date: Tue, 24 Feb 2026 22:12:19 +0900 Subject: [PATCH] Refactor (4) --- index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.ts b/index.ts index f15fb6a..8e28cdb 100644 --- a/index.ts +++ b/index.ts @@ -247,8 +247,8 @@ async function pushJob() { while (true) { console.log("* push: post"); jobs.push({ type: "post" }); - // random interval between 10 minutes and 2 hours - const interval = Math.floor(Math.random() * 110 + 10) * 60 * 1000; + // random interval between 10 and 40 minutes + const interval = Math.floor(Math.random() * 30 + 10) * 60 * 1000; console.log( `* info: next post job in ${Math.round(interval / 60000)} minutes`, );