| 145 | /* ── Adaptive interval ──────────────────────────────────────────── */ |
| 146 | |
| 147 | int cbm_watcher_poll_interval_ms(int file_count) { |
| 148 | int ms = POLL_BASE_MS + ((file_count / POLL_FILE_STEP) * CBM_MSEC_PER_SEC); |
| 149 | if (ms > POLL_MAX_MS) { |
| 150 | ms = POLL_MAX_MS; |
| 151 | } |
| 152 | return ms; |
| 153 | } |
| 154 | |
| 155 | /* ── Git helpers ────────────────────────────────────────────────── */ |
| 156 |
no outgoing calls
no test coverage detected