]> git.seodisparate.com - swaybar_info/commitdiff
Increase netdev traffic minimum text width to 11
authorStephen Seo <seo.disparate@gmail.com>
Sun, 11 Dec 2022 13:02:05 +0000 (22:02 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Sun, 11 Dec 2022 13:02:05 +0000 (22:02 +0900)
src/args.rs
src/main.rs

index babfc515ae46d74f74b278e608612f31afdf784a..96d4027eb721d8235bfc3c9ddee13536cf5fdf3e 100644 (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")
index f7b2ac7a52b76f73c17df276069e70798260e441..d0d0d58f5bd3fec064e0a2d7a09124985a398014 100644 (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);