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

Source from the content-addressed store, hash-verified

96/* ── Adaptive interval ──────────────────────────────────────────── */
97
98int 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

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