improves display of how long ago change happened
This commit is contained in:
parent
460b51c503
commit
039d30fe12
@ -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())
|
||||
]));
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user