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.alive.to_string(), Style::default()),
|
||||||
Span::styled(current.last_rtt.to_string(), Style::default()),
|
Span::styled(current.last_rtt.to_string(), Style::default()),
|
||||||
Span::styled(
|
Span::styled(
|
||||||
duration_to_string(
|
format!("{} ago.", duration_to_string(
|
||||||
SystemTime::now()
|
SystemTime::now()
|
||||||
.duration_since(current.last_alive_change)
|
.duration_since(current.last_alive_change)
|
||||||
.unwrap()
|
.unwrap()
|
||||||
), Style::default())
|
)), Style::default())
|
||||||
]));
|
]));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -77,4 +77,4 @@ impl RatatuiUi {
|
|||||||
layout[1]
|
layout[1]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user