Closed
Description
Is your issue REALLY a bug?
- My issue is indeed a bug!
- I am not crazy! I will not fill out this form just to ask a question or request a feature. Pinky promise.
Is there an existing issue for this?
- I have searched the existing issues.
Is this issue related to iced?
- My hardware is compatible and my graphics drivers are up-to-date.
What happened?
Experimenting a bit I noticed that the cpu_brand
is always an empty string. Running the system_information
example with cargo r --package system_information
for example. On my machine looks like this:
Looking at the implementation shows that here we fill out the Information
struct like this:
use sysinfo::{Process, System};
let mut system = System::new_all();
system.refresh_all();
let cpu = system.global_cpu_info();
// ...
Information {
// ...
cpu_brand: cpu.brand().into(),
// ...
}
Reading the documentation for System::global_cpu_info()
from here it states:
...
⚠️ Important ⚠️
Information like [Cpu::brand](https://docs.rs/sysinfo/0.30.13/sysinfo/struct.Cpu.html#method.brand),
[Cpu::vendor_id](https://docs.rs/sysinfo/0.30.13/sysinfo/struct.Cpu.html#method.vendor_id) or [Cpu::frequency]
(https://docs.rs/sysinfo/0.30.13/sysinfo/struct.Cpu.html#method.frequency) are not set on the “global” CPU.
which would explain why the cpu_brand
always shows an empty String.
What is the expected behavior?
cpu_brand
not being an empty string.
Version
master
Operating System
Linux
Do you have any log output?
N/A