summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--internal/state.go6
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")
}