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

Function ui_log_rotate_bytes

src/ui/http_server.c:730–738  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

728}
729
730static int64_t ui_log_rotate_bytes(void) {
731 const char *env = cbm_runtime_getenv("CBM_UI_LOG_ROTATE_BYTES");
732 if (env && env[0] != '\0') {
733 long long v = atoll(env);
734 if (v > 0)
735 return (int64_t)v;
736 }
737 return UI_LOG_ROTATE_DEFAULT;
738}
739
740/* One-time, bounded migration of old file-only info records. Preserve original
741 * timestamps and leave project provenance unknown; no current project is inferred.

Callers 1

handle_ui_log_postFunction · 0.85

Calls 1

cbm_runtime_getenvFunction · 0.85

Tested by

no test coverage detected