Health: "Last apply" reads "Kernel in sync"

The health row that shows when the config was last written to the
kernel is now called Kernel in sync, with the time since then, or Out
of sync and the kernel's error when applying failed. The API keeps the
check's name, so clients are unaffected.
This commit is contained in:
Daniel Redetzke
2026-10-05 22:28:16 +03:00
parent 8edde9f5e7
commit 1bfede250c
+2 -1
View File
@@ -1856,7 +1856,8 @@
if (/^table /.test(c.detail)) { t.raw = c.detail.replace(/ (present|missing)$/, ''); t.problem = null; } if (/^table /.test(c.detail)) { t.raw = c.detail.replace(/ (present|missing)$/, ''); t.problem = null; }
break; break;
case 'Last apply': case 'Last apply':
if (c.ok) { const iso = c.detail.replace(/^applied /, ''); t.status = ago(iso); t.title = fmtStamp(iso); } else t.status = 'Failed'; t.label = 'Kernel in sync';
if (c.ok) { const iso = c.detail.replace(/^applied /, ''); t.status = ago(iso); t.title = fmtStamp(iso); } else t.status = 'Out of sync';
break; break;
case 'Latency check': t.status = c.ok ? 'Tunnel ping works' : 'Failing'; break; case 'Latency check': t.status = c.ok ? 'Tunnel ping works' : 'Failing'; break;
} }