diff options
author | 2023-03-07 07:22:48 +0100 | |
---|---|---|
committer | 2023-03-07 07:22:48 +0100 | |
commit | df68cca0c9dda051ae979ccc2f5ca8d37c3e3cb5 (patch) | |
tree | 1bee4bc1a62ce48e978f3dd35176495643c27198 /winit | |
parent | d73ca4de0f1f2c0f64bce78be819516dcaac8ed2 (diff) | |
download | iced-df68cca0c9dda051ae979ccc2f5ca8d37c3e3cb5.tar.gz iced-df68cca0c9dda051ae979ccc2f5ca8d37c3e3cb5.tar.bz2 iced-df68cca0c9dda051ae979ccc2f5ca8d37c3e3cb5.zip |
Update `sysinfo` to `0.28`
Diffstat (limited to '')
-rw-r--r-- | winit/Cargo.toml | 2 | ||||
-rw-r--r-- | winit/src/system.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/winit/Cargo.toml b/winit/Cargo.toml index 60e464c6..dd5c12c2 100644 --- a/winit/Cargo.toml +++ b/winit/Cargo.toml @@ -65,5 +65,5 @@ version = "0.3" features = ["Document", "Window"] [dependencies.sysinfo] -version = "0.23" +version = "0.28" optional = true diff --git a/winit/src/system.rs b/winit/src/system.rs index 619086b8..8d8b018c 100644 --- a/winit/src/system.rs +++ b/winit/src/system.rs @@ -16,11 +16,11 @@ pub fn fetch_information<Message>( pub(crate) fn information( graphics_info: compositor::Information, ) -> Information { - use sysinfo::{ProcessExt, ProcessorExt, System, SystemExt}; + use sysinfo::{CpuExt, ProcessExt, System, SystemExt}; let mut system = System::new_all(); system.refresh_all(); - let cpu = system.global_processor_info(); + let cpu = system.global_cpu_info(); let memory_used = sysinfo::get_current_pid() .and_then(|pid| system.process(pid).ok_or("Process not found")) |