From a113855d903a503eb7c183627239c2e02baec08d Mon Sep 17 00:00:00 2001 From: arloor Date: Fri, 27 Sep 2024 15:13:59 +0800 Subject: [PATCH] Refactor net_monitor.rs to update cgroup_transmit_counter initialization --- rust_http_proxy/src/net_monitor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust_http_proxy/src/net_monitor.rs b/rust_http_proxy/src/net_monitor.rs index d8fc3a0..ca62dc1 100644 --- a/rust_http_proxy/src/net_monitor.rs +++ b/rust_http_proxy/src/net_monitor.rs @@ -36,7 +36,7 @@ impl NetMonitor { Ok(NetMonitor { buffer: Arc::new(RwLock::new(VecDeque::::new())), #[cfg(all(target_os = "linux", feature = "bpf"))] - cgroup_transmit_counter: cgroup_traffic::init_self_cgroup_skb_monitor()?, + cgroup_transmit_counter: cgroup_traffic::init_cgroup_skb_monitor(cgroup_traffic::SELF)?, }) }