diff --git a/stress/serp-recovery-probe.ts b/stress/serp-recovery-probe.ts index 13cf4fc..58a9362 100644 --- a/stress/serp-recovery-probe.ts +++ b/stress/serp-recovery-probe.ts @@ -14,8 +14,8 @@ if (!TOKEN) { console.error("缺少 SERP_TOKEN"); process.exit(1); } const DATA = new URL("./data/", import.meta.url).pathname; fs.mkdirSync(DATA, { recursive: true }); const JSONL = `${DATA}recovery-probe.jsonl`; -const INTERVAL_MIN = 15; -const N = 5; +const INTERVAL_MIN = Number(process.env.PROBE_INTERVAL_MIN ?? 15); +const N = Number(process.env.PROBE_N ?? 5); const QUERIES = ["recovery probe coffee maker", "recovery probe running shoes", "recovery probe laptop stand", "recovery probe rice cooker", "recovery probe desk lamp"]; /** # 函数