| 140 | /* ── Adaptive interval ──────────────────────────────────────────── */ |
| 141 | |
| 142 | int cbm_watcher_poll_interval_ms(int file_count) { |
| 143 | int ms = POLL_BASE_MS + ((file_count / POLL_FILE_STEP) * CBM_MSEC_PER_SEC); |
| 144 | if (ms > POLL_MAX_MS) { |
| 145 | ms = POLL_MAX_MS; |
| 146 | } |
| 147 | return ms; |
| 148 | } |
| 149 | |
| 150 | /* ── Git helpers ────────────────────────────────────────────────── */ |
| 151 |
no outgoing calls
no test coverage detected