diff --git a/src/main.rs b/src/main.rs index cbac481d..84e60517 100644 --- a/src/main.rs +++ b/src/main.rs @@ -279,7 +279,7 @@ where while running.load(Ordering::Acquire) { if let Some(segment) = sniffer.next() { - network_utilization.lock().unwrap().update(segment); + network_utilization.lock().unwrap().ingest(segment); } } }) diff --git a/src/network/utilization.rs b/src/network/utilization.rs index c44356b6..6136513f 100644 --- a/src/network/utilization.rs +++ b/src/network/utilization.rs @@ -24,7 +24,7 @@ impl Utilization { self.connections.clear(); clone } - pub fn update(&mut self, seg: Segment) { + pub fn ingest(&mut self, seg: Segment) { let total_bandwidth = self .connections .entry(seg.connection)