From b313cd1ea618a672f08e12180a8c802782b65610 Mon Sep 17 00:00:00 2001 From: cyqsimon <28627918+cyqsimon@users.noreply.github.com> Date: Tue, 8 Oct 2024 14:36:02 +0800 Subject: [PATCH 1/2] Fix breaking changes of `sysinfo` crate --- src/os/windows.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/windows.rs b/src/os/windows.rs index e14b33c2..65a765d6 100644 --- a/src/os/windows.rs +++ b/src/os/windows.rs @@ -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; From a1923df63124a3c2cdafd529c899f8094124903f Mon Sep 17 00:00:00 2001 From: cyqsimon <28627918+cyqsimon@users.noreply.github.com> Date: Tue, 8 Oct 2024 14:38:29 +0800 Subject: [PATCH 2/2] Write changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d32c6074..50f93155 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) * CI: Use Powershell Compress-Archive to create Windows binary zip #424 - @cyqsimon * Exit gracefully when there is a broken pipe error #429 - @sigmaSd +* Fix breaking changes of sysinfo crate #431 - @cyqsimon ## [0.23.0] - 2024-08-17