You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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};letmut 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
The text was updated successfully, but these errors were encountered:
This was caused by a misuse of the `global_cpu_info` function, which was
does not contain a valid `cpu_brand` field.
To fix this, we now get the first cpu and return it's brand instead.
Fixesiced-rs#2794
AMS21
added a commit
to AMS21/iced
that referenced
this issue
Feb 7, 2025
This was caused by a misuse of the `global_cpu_info` function, which
does not contain a valid `cpu_brand` field.
To fix this, we now get the first cpu and return it's brand instead.
Fixesiced-rs#2794
AMS21
linked a pull request
Feb 7, 2025
that will
close
this issue
Is your issue REALLY a bug?
Is there an existing issue for this?
Is this issue related to iced?
What happened?
Experimenting a bit I noticed that the
cpu_brand
is always an empty string. Running thesystem_information
example withcargo 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:Reading the documentation for
System::global_cpu_info()
from here it states: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?
The text was updated successfully, but these errors were encountered: