Stale enforcement reports judge both clocks

This commit is contained in:
2026-08-13 09:54:05 -04:00
parent 5dcc7e30af
commit 3abf724ae6
3 changed files with 70 additions and 6 deletions

View File

@@ -192,9 +192,11 @@ function statusClass(status) {
}
function staleTitle(report) {
const last = report.receivedat ? formatDate(report.receivedat) : 'never'
return `No report for over ${report.staleafterminutes} minutes.`
+ ` Last heard ${last}, reporting "${report.status}".`
const received = report.receivedat ? formatDate(report.receivedat) : 'never'
const checkin = report.lastcheckin ? formatDate(report.lastcheckin) : 'not reported'
return `Nothing heard for over ${report.staleafterminutes} minutes.`
+ ` Last report received ${received}, PC last checked in ${checkin},`
+ ` reporting "${report.status}".`
}
function actionClass(action) {
return { installed: 'badge-info', skipped: 'badge-success', failed: 'badge-danger',