MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cbm_watcher_poll_interval_ms

Function cbm_watcher_poll_interval_ms

src/watcher/watcher.c:142–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140/* ── Adaptive interval ──────────────────────────────────────────── */
141
142int 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

Callers 3

init_baselineFunction · 0.85
poll_projectFunction · 0.85
test_watcher.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected