diff --git a/Cargo.toml b/Cargo.toml index cc98b8a1bf..1f28239505 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -121,7 +121,7 @@ iced_widget = { version = "0.12", path = "widget" } iced_winit = { version = "0.12", path = "winit" } async-std = "1.0" -bitflags = "2.4" +bitflags = "2.0" bytemuck = { version = "1.0", features = ["derive"] } cosmic-text = "0.10" futures = "0.3" @@ -157,7 +157,7 @@ unicode-segmentation = "1.0" wasm-bindgen-futures = "0.4" wasm-timer = "0.2" web-sys = "0.3" -web-time = "1.0" +web-time = "0.2" wgpu = "0.19" winapi = "0.3" window_clipboard = "0.4" diff --git a/winit/src/system.rs b/winit/src/system.rs index ea99e5e856..599027a92c 100644 --- a/winit/src/system.rs +++ b/winit/src/system.rs @@ -23,7 +23,7 @@ pub(crate) fn information( let memory_used = sysinfo::get_current_pid() .and_then(|pid| system.process(pid).ok_or("Process not found")) - .map(|v| v.memory() / 1000) + .map(|v| v.memory()) .ok(); Information { @@ -33,7 +33,7 @@ pub(crate) fn information( system_short_version: System::os_version(), cpu_brand: cpu.brand().into(), cpu_cores: system.physical_core_count(), - memory_total: system.total_memory() / 1000, + memory_total: system.total_memory(), memory_used, graphics_adapter: graphics_info.adapter, graphics_backend: graphics_info.backend,