From cd91641bf553763af09dbb56b7cb9cd1cd13e9cc Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Sun, 11 Dec 2022 22:02:05 +0900 Subject: [PATCH] Increase netdev traffic minimum text width to 11 --- src/args.rs | 2 +- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/args.rs b/src/args.rs index babfc51..96d4027 100644 --- a/src/args.rs +++ b/src/args.rs @@ -59,7 +59,7 @@ pub fn print_usage() { .write_all(b" --netdev=\t\t\t\tCheck network traffic on specified device\n") .ok(); stderr_handle - .write_all(b" --netdev_width=\t\t\t\tSets the min-width of the netdev output (default 10)\n") + .write_all(b" --netdev_width=\t\t\t\tSets the min-width of the netdev output (default 11)\n") .ok(); stderr_handle .write_all(b" --netgraph_max_bytes=\t\t\t\tEnable \"graph\" output when polling network traffic\n") diff --git a/src/main.rs b/src/main.rs index f7b2ac7..d0d0d58 100644 --- a/src/main.rs +++ b/src/main.rs @@ -44,7 +44,7 @@ fn main() { } let mut net_obj: Option = None; - let mut net_width: Option = Some(10); + let mut net_width: Option = Some(11); let mut net_graph_max: Option = None; let mut net_graph_is_dynamic: bool = false; let mut interval: Duration = Duration::from_secs(5);