From ad91c68bcb1e1102d836d4d1fecdcac0c26d4f46 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Mon, 7 Feb 2022 22:03:38 +0900 Subject: [PATCH] Add README.md --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..b7bc975 --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +# Linux Traffic Rate in Rust + +This program was used in conjunction with i3status to add network-rate-info to +swaybar. The `const` variables at the top of `main.rs` can be configured for +different use cases. + +It simply reads from `/proc/net/dev` to obtain byte-counts of the specified +network interface and writes to four files, two of which keep track of the total +byte count for sending and receiving, and the other two contain the "diffs" for +each (configurable) interval (by default 5 seconds).