Increase netdev traffic minimum text width to 11
This commit is contained in:
parent
9096a890be
commit
cd91641bf5
2 changed files with 2 additions and 2 deletions
|
@ -59,7 +59,7 @@ pub fn print_usage() {
|
||||||
.write_all(b" --netdev=<device_name>\t\t\t\tCheck network traffic on specified device\n")
|
.write_all(b" --netdev=<device_name>\t\t\t\tCheck network traffic on specified device\n")
|
||||||
.ok();
|
.ok();
|
||||||
stderr_handle
|
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();
|
.ok();
|
||||||
stderr_handle
|
stderr_handle
|
||||||
.write_all(b" --netgraph_max_bytes=<bytes>\t\t\t\tEnable \"graph\" output when polling network traffic\n")
|
.write_all(b" --netgraph_max_bytes=<bytes>\t\t\t\tEnable \"graph\" output when polling network traffic\n")
|
||||||
|
|
|
@ -44,7 +44,7 @@ fn main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut net_obj: Option<proc::NetInfo> = None;
|
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_max: Option<f64> = None;
|
||||||
let mut net_graph_is_dynamic: bool = false;
|
let mut net_graph_is_dynamic: bool = false;
|
||||||
let mut interval: Duration = Duration::from_secs(5);
|
let mut interval: Duration = Duration::from_secs(5);
|
||||||
|
|
Loading…
Reference in a new issue