Skip to content

Commit e5795f3

Browse files
committed
ddmadm: show fsm state duration in separate column
1 parent d2800c7 commit e5795f3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

ddmadm/src/main.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,13 @@ async fn run() -> Result<()> {
111111
let mut tw = TabWriter::new(stdout());
112112
writeln!(
113113
&mut tw,
114-
"{}\t{}\t{}\t{}\t{}",
114+
"{}\t{}\t{}\t{}\t{}\t{}",
115115
"Interface".dimmed(),
116116
"Host".dimmed(),
117117
"Address".dimmed(),
118118
"Kind".dimmed(),
119119
"Status".dimmed(),
120+
"Duration".dimmed(),
120121
)?;
121122
let mut peers: Vec<_> = msg.into_inner().into_iter().collect();
122123
peers.sort_by_key(|(index, _)| index.clone());
@@ -129,7 +130,7 @@ async fn run() -> Result<()> {
129130
};
130131
writeln!(
131132
&mut tw,
132-
"{}\t{}\t{}\t{}\t{} {}",
133+
"{}\t{}\t{}\t{}\t{}\t{}",
133134
index,
134135
info.host,
135136
info.addr,

0 commit comments

Comments
 (0)