mirror of
https://github.com/imsnif/bandwhich.git
synced 2026-02-09 01:59:18 +08:00
Rename Utilization::update to Utilization::ingest
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user