MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / applyCleanupDefaults

Function applyCleanupDefaults

static/js/logs.js:132–150  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

130}
131
132function applyCleanupDefaults(data) {
133 if (logsState.cleanupDefaultsHydrated) {
134 return;
135 }
136
137 const retentionDays = Number(data.retention_days || 0);
138 const maxRows = Number(data.max_rows || 0);
139
140 if (retentionDays > 0) {
141 el.cleanupRetentionDays.value = String(retentionDays);
142 }
143 if (maxRows > 0) {
144 el.cleanupMaxRows.value = String(maxRows);
145 }
146
147 if (retentionDays > 0 || maxRows > 0) {
148 logsState.cleanupDefaultsHydrated = true;
149 }
150}
151
152async function loadStats(silent = false) {
153 try {

Callers 1

loadStatsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected