Rename Utilization::update to Utilization::ingest

This commit is contained in:
cyqsimon
2024-04-22 18:00:58 +08:00
parent 2193cf93db
commit 58fb01a69d
2 changed files with 2 additions and 2 deletions

View File

@@ -278,7 +278,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);
}
}
})

View File

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