improves display of how long ago change happened

This commit is contained in:
2025-04-24 11:31:13 -04:00
parent 460b51c503
commit 039d30fe12
+3 -3
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())
]));
}
@@ -77,4 +77,4 @@ impl RatatuiUi {
layout[1]
);
}
}
}