Stale enforcement reports judge both clocks
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user