Skip to content

Commit

Permalink
Remove rx_nohandler stats from capturer
Browse files Browse the repository at this point in the history
  • Loading branch information
ruieduardolopes committed Jul 29, 2019
1 parent 975a161 commit bd210e9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "monet"
version = "0.1.5-rc4"
version = "0.1.5-rc5"
authors = ["André Nascimento <[email protected]>", "Rui Lopes <[email protected]>"]
edition = "2018"

Expand Down
4 changes: 1 addition & 3 deletions src/capture/interfaces/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ fn get_specs(interface: String, reporter: Logger, session: &Arc<AtomicUsize>) {
rx_frame_errors = InputStream::new(BufReader::new(File::open(format!("/sys/class/net/{}/statistics/rx_frame_errors", interface)).unwrap())).scan().unwrap();
rx_length_errors = InputStream::new(BufReader::new(File::open(format!("/sys/class/net/{}/statistics/rx_length_errors", interface)).unwrap())).scan().unwrap();
rx_missed_errors = InputStream::new(BufReader::new(File::open(format!("/sys/class/net/{}/statistics/rx_missed_errors", interface)).unwrap())).scan().unwrap();
rx_nohandler = InputStream::new(BufReader::new(File::open(format!("/sys/class/net/{}/statistics/rx_nohandler", interface)).unwrap())).scan().unwrap();
rx_over_errors = InputStream::new(BufReader::new(File::open(format!("/sys/class/net/{}/statistics/rx_over_errors", interface)).unwrap())).scan().unwrap();
rx_packets = InputStream::new(BufReader::new(File::open(format!("/sys/class/net/{}/statistics/rx_packets", interface)).unwrap())).scan().unwrap();
tx_aborted_errors = InputStream::new(BufReader::new(File::open(format!("/sys/class/net/{}/statistics/tx_aborted_errors", interface)).unwrap())).scan().unwrap();
Expand All @@ -79,7 +78,7 @@ fn get_specs(interface: String, reporter: Logger, session: &Arc<AtomicUsize>) {

info!(
reporter,
"[monet] {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {}",
"[monet] {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {}",
collisions,
multicast,
rx_bytes,
Expand All @@ -91,7 +90,6 @@ fn get_specs(interface: String, reporter: Logger, session: &Arc<AtomicUsize>) {
rx_frame_errors,
rx_length_errors,
rx_missed_errors,
rx_nohandler,
rx_over_errors,
rx_packets,
tx_aborted_errors,
Expand Down
2 changes: 1 addition & 1 deletion src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use clap::{App, Arg, ArgMatches, SubCommand};

pub fn get_options_from_cli() -> ArgMatches<'static> {
App::new("Monet: Monitor a Network")
.version("0.1.5-rc4")
.version("0.1.5-rc5")
.author("André Nascimento and Rui Lopes")
.about("Tool to get some insights on a network or interfaces")
.subcommand(
Expand Down

0 comments on commit bd210e9

Please sign in to comment.