Open
Description
hi
The temperature cannot be read:
use sysinfo::{NetworkExt, NetworksExt, ProcessExt, System, SystemExt,ComponentExt};
fn main() {
let mut sys = System::new_all();
for component in sys.components_mut() {
println!("{:?}", component.temperature());
}
}
=============
Default host: x86_64-pc-windows-msvc
rustup home: d:\01rustlang.rustup
installed toolchains
stable-i686-pc-windows-gnu
stable-i686-pc-windows-msvc
stable-x86_64-pc-windows-gnu
stable-x86_64-pc-windows-msvc
nightly-x86_64-pc-windows-gnu
nightly-x86_64-pc-windows-msvc (default)
installed targets for active toolchain
i686-pc-windows-gnu
i686-pc-windows-msvc
x86_64-pc-windows-msvc
active toolchain
nightly-x86_64-pc-windows-msvc (default)
rustc 1.58.0-nightly (514b38779 2021-10-22)
Microsoft Windows [Version 10.0.17763.2268]
Windows server 2019