Go to file
2022-02-07 22:03:38 +09:00
src Cleanup and clippy fixes (linter) 2022-02-07 21:57:15 +09:00
.gitignore Init skeleton rust project 2022-02-03 21:28:57 +09:00
Cargo.lock Finish impl 2022-02-07 17:55:15 +09:00
Cargo.toml Finish impl 2022-02-07 17:55:15 +09:00
LICENSE Add LICENSE (MIT License) 2022-02-07 21:59:35 +09:00
README.md Add README.md 2022-02-07 22:03:38 +09:00

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).