Skip to content

removing excess frequency value - #77

Merged
amaanq merged 1 commit into
NotAShelf:mainfrom
tyuwags:main
Aug 25, 2026
Merged

removing excess frequency value#77
amaanq merged 1 commit into
NotAShelf:mainfrom
tyuwags:main

Conversation

@tyuwags

@tyuwags tyuwags commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

After updating microfetch to the version 1.1.0, I got a problem with the frequency of the cpu printed. More precisely, the value is appearing twice as seen in the following image.

Screenshot

The problem appears because now microfetch is looking for the frequency by itself but the frequency is present directly in the name of the cpu model.

To resolve the problem and keep the lookup by microfetch, the code is now looking for a part where "@" can exist and then trim it with the frequency value from the name.

@NotAShelf

Copy link
Copy Markdown
Owner

CC @amaanq

Comment thread crates/lib/src/cpu.rs Outdated
@NotAShelf
NotAShelf requested a review from amaanq August 10, 2026 11:51
Intel's `model name` in `/proc/cpuinfo` already ends in `@ 3.60GHz`,
so appending the sysfs `cpuinfo_max_freq` reading printed the
frequency twice. Cutting at the ` @ ` before re-running `trim` also
lets the ` CPU` suffix strip fire, which the clock suffix had been
hiding.

Co-authored-by: Amaan Qureshi <git@amaanq.com>
@amaanq
amaanq merged commit acc2e56 into NotAShelf:main Aug 25, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants