Fix
This commit is contained in:
parent
f2296ec82d
commit
01395ec920
3 changed files with 15 additions and 87 deletions
|
|
@ -80,6 +80,14 @@ fn create_status_line_spans(status_history: &[MonitorStatus]) -> Vec<Span<'stati
|
|||
.take(STATUS_LINE_LENGTH)
|
||||
.collect();
|
||||
|
||||
spans.push(Span::styled(
|
||||
"(1h)",
|
||||
Style::default()
|
||||
.fg(Color::Gray)
|
||||
.add_modifier(Modifier::ITALIC),
|
||||
));
|
||||
spans.push(Span::raw(" "));
|
||||
|
||||
for status in recent_status.iter().rev() {
|
||||
let c = get_status_char(status);
|
||||
let color = get_status_color(status);
|
||||
|
|
@ -87,15 +95,13 @@ fn create_status_line_spans(status_history: &[MonitorStatus]) -> Vec<Span<'stati
|
|||
spans.push(Span::styled(c.to_string(), Style::default().fg(color)));
|
||||
}
|
||||
|
||||
if !spans.is_empty() {
|
||||
spans.push(Span::raw(" "));
|
||||
spans.push(Span::styled(
|
||||
"(24)",
|
||||
Style::default()
|
||||
.fg(Color::Gray)
|
||||
.add_modifier(Modifier::ITALIC),
|
||||
));
|
||||
}
|
||||
spans.push(Span::raw(" "));
|
||||
spans.push(Span::styled(
|
||||
t("now"),
|
||||
Style::default()
|
||||
.fg(Color::Gray)
|
||||
.add_modifier(Modifier::ITALIC),
|
||||
));
|
||||
|
||||
spans
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue