MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / normalizeAutoRunDelayMinutes

Function normalizeAutoRunDelayMinutes

background.js:308–317  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

306};
307
308function normalizeAutoRunDelayMinutes(value) {
309 const numeric = Number(value);
310 if (!Number.isFinite(numeric)) {
311 return PERSISTED_SETTING_DEFAULTS.autoRunDelayMinutes;
312 }
313 return Math.min(
314 AUTO_RUN_DELAY_MAX_MINUTES,
315 Math.max(AUTO_RUN_DELAY_MIN_MINUTES, Math.floor(numeric))
316 );
317}
318
319function normalizeAutoRunFallbackThreadIntervalMinutes(value) {
320 const rawValue = String(value ?? '').trim();

Callers 2

scheduleAutoRunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected