improves display of how long ago change happened

This commit is contained in:
Trevor Merritt 2025-04-24 11:31:13 -04:00
parent 460b51c503
commit 039d30fe12

View File

@ -54,11 +54,11 @@ impl RatatuiUi {
Span::styled(current.alive.to_string(), Style::default()),
Span::styled(current.last_rtt.to_string(), Style::default()),
Span::styled(
duration_to_string(
format!("{} ago.", duration_to_string(
SystemTime::now()
.duration_since(current.last_alive_change)
.unwrap()
), Style::default())
)), Style::default())
]));
}