fix cache and restart
This commit is contained in:
@@ -261,6 +261,7 @@ async function refresh() {
|
||||
document.getElementById('liveStatus').innerHTML = [
|
||||
data.stale ? `<span class="sev-high">Showing cached dashboard data because live MCP fetch failed.</span>` : '',
|
||||
cache.stored_at ? `Cached snapshot: ${esc(new Date(cache.stored_at * 1000).toLocaleString())}` : '',
|
||||
`Status schema: ${esc(data.status_schema || 'old')}`,
|
||||
`Log file: <code>${esc(data.log_path || '')}</code>`,
|
||||
`Policy file: <code>${esc(data.policy_path || 'none')}</code>`,
|
||||
`Critical anomalies: ${esc((a.critical || 0))}`,
|
||||
|
||||
@@ -306,6 +306,7 @@ def build_status(
|
||||
summary["raw_sample_total"] = len(events)
|
||||
summary["aggregate_backed"] = True
|
||||
status = {
|
||||
"status_schema": 2,
|
||||
"generated_at": int(time.time()),
|
||||
"log_path": log_path,
|
||||
"policy_path": policy_path,
|
||||
|
||||
Reference in New Issue
Block a user