diff options
| author | Paul Buetow <paul@buetow.org> | 2025-05-29 09:29:17 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-05-29 09:29:17 +0300 |
| commit | 9af571d26efc3b66a0e4743e33c54075a03bc3be (patch) | |
| tree | 77d0427bf8965d66fa7fbf14edd7f44124ee91e4 | |
| parent | ce6844995eaa3b1e2d50825d5490f3593cae2b8e (diff) | |
also show last checked ago in stale report
| -rw-r--r-- | internal/state.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/state.go b/internal/state.go index 062a698..cda360f 100644 --- a/internal/state.go +++ b/internal/state.go @@ -220,6 +220,12 @@ func (s state) reportBy(sb *strings.Builder, showStatusChange, isStaleReport boo sb.WriteString(name) sb.WriteString(": ") sb.WriteString(cs.output) + + if isStaleReport { + lastCheckedAgo := time.Since(time.Unix(cs.Epoch, 0)) + sb.WriteString(fmt.Sprintf(" (last checked %v ago)", lastCheckedAgo)) + } + sb.WriteString("\n") } |
