We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6735eaa + 4eee12a commit 3cc7a10Copy full SHA for 3cc7a10
src/ui_procs.rs
@@ -68,11 +68,16 @@ fn create_proc_item<'a>(
68
.add_modifier(Modifier::BOLD),
69
)
70
} else {
71
- let status = match proc_handle.exit_code() {
72
- Some(exit_code) => format!(" DOWN ({})", exit_code),
73
- None => " DOWN ".to_string(),
74
- };
75
- Span::styled(status, Style::default().fg(Color::LightRed))
+ match proc_handle.exit_code() {
+ Some(0) => {
+ Span::styled(" DOWN (0)", Style::default().fg(Color::LightBlue))
+ }
+ Some(exit_code) => Span::styled(
76
+ format!(" DOWN ({})", exit_code),
77
+ Style::default().fg(Color::LightRed),
78
+ ),
79
+ None => Span::styled(" DOWN ", Style::default().fg(Color::LightRed)),
80
81
};
82
83
let mark = if is_cur {
0 commit comments