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:147–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145/* ── Adaptive interval ──────────────────────────────────────────── */
146
147int 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

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