| 96 | /* ── Adaptive interval ──────────────────────────────────────────── */ |
| 97 | |
| 98 | int cbm_watcher_poll_interval_ms(int file_count) { |
| 99 | int ms = POLL_BASE_MS + ((file_count / POLL_FILE_STEP) * CBM_MSEC_PER_SEC); |
| 100 | if (ms > POLL_MAX_MS) { |
| 101 | ms = POLL_MAX_MS; |
| 102 | } |
| 103 | return ms; |
| 104 | } |
| 105 | |
| 106 | /* ── Git helpers ────────────────────────────────────────────────── */ |
| 107 |
no outgoing calls
no test coverage detected