Increase netdev traffic minimum text width to 11

This commit is contained in:
Stephen Seo 2022-12-11 22:02:05 +09:00
parent 9096a890be
commit cd91641bf5
2 changed files with 2 additions and 2 deletions

View file

@ -59,7 +59,7 @@ pub fn print_usage() {
.write_all(b" --netdev=<device_name>\t\t\t\tCheck network traffic on specified device\n")
.ok();
stderr_handle
.write_all(b" --netdev_width=<width>\t\t\t\tSets the min-width of the netdev output (default 10)\n")
.write_all(b" --netdev_width=<width>\t\t\t\tSets the min-width of the netdev output (default 11)\n")
.ok();
stderr_handle
.write_all(b" --netgraph_max_bytes=<bytes>\t\t\t\tEnable \"graph\" output when polling network traffic\n")

View file

@ -44,7 +44,7 @@ fn main() {
}
let mut net_obj: Option<proc::NetInfo> = None;
let mut net_width: Option<u16> = Some(10);
let mut net_width: Option<u16> = Some(11);
let mut net_graph_max: Option<f64> = None;
let mut net_graph_is_dynamic: bool = false;
let mut interval: Duration = Duration::from_secs(5);