(value)
| 317 | } |
| 318 | |
| 319 | function normalizeAutoRunFallbackThreadIntervalMinutes(value) { |
| 320 | const rawValue = String(value ?? '').trim(); |
| 321 | if (!rawValue) { |
| 322 | return 0; |
| 323 | } |
| 324 | |
| 325 | const numeric = Number(rawValue); |
| 326 | if (!Number.isFinite(numeric)) { |
| 327 | return 0; |
| 328 | } |
| 329 | |
| 330 | return Math.min( |
| 331 | AUTO_RUN_DELAY_MAX_MINUTES, |
| 332 | Math.max(0, Math.floor(numeric)) |
| 333 | ); |
| 334 | } |
| 335 | |
| 336 | function normalizeAutoStepDelaySeconds(value, fallback = null) { |
| 337 | const rawValue = String(value ?? '').trim(); |
no outgoing calls
no test coverage detected