mirror of
https://github.com/imsnif/bandwhich.git
synced 2026-02-09 01:59:18 +08:00
Fix breaking changes of sysinfo crate
This commit is contained in:
@@ -13,7 +13,7 @@ pub(crate) fn get_open_sockets() -> OpenSockets {
|
||||
let mut open_sockets = HashMap::new();
|
||||
|
||||
let mut sysinfo = System::new_all();
|
||||
sysinfo.refresh_processes(ProcessesToUpdate::All);
|
||||
sysinfo.refresh_processes(ProcessesToUpdate::All, true);
|
||||
|
||||
let af_flags = AddressFamilyFlags::IPV4 | AddressFamilyFlags::IPV6;
|
||||
let proto_flags = ProtocolFlags::TCP | ProtocolFlags::UDP;
|
||||
|
||||
Reference in New Issue
Block a user