Skip to content

Show sub-GHz CPU frequency in MHz instead of always GHz - #542

Merged
vjr merged 13 commits into
mainfrom
vishal/cpu-frequency-mhz
Sep 15, 2026
Merged

vjr merged 13 commits into
mainfrom
vishal/cpu-frequency-mhz

Conversation

@vjr

@vjr vjr commented Aug 25, 2026

Copy link
Copy Markdown
Member

No description provided.

@vjr vjr self-assigned this Aug 25, 2026
@vjr
vjr requested review from a team and stsdc August 25, 2026 03:36
@vjr vjr mentioned this pull request Aug 25, 2026
@vjr
vjr requested a review from danirabbit August 25, 2026 03:49

@danirabbit danirabbit left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely moving this to a utility is great. I think we should follow how GLib format_size works here at least for localization. They have great comments and it seems they translate the unit separately from the final string (probably for RTL or languages that don’t use spaces etc) https://github.com/GNOME/glib/blob/main/glib/gutils.c#L2834

@vjr

vjr commented Aug 25, 2026

Copy link
Copy Markdown
Member Author

Definitely moving this to a utility is great. I think we should follow how GLib format_size works here at least for localization. They have great comments and it seems they translate the unit separately from the final string (probably for RTL or languages that don’t use spaces etc) https://github.com/GNOME/glib/blob/main/glib/gutils.c#L2834

Kool - can we leave the glib style translation part for another PR? I'm not adept in this area so either someone who can or I can work on it later. Existing main branch also lacks this glib style translation.

@vjr
vjr requested a review from danirabbit August 25, 2026 05:02
@stsdc

stsdc commented Sep 9, 2026

Copy link
Copy Markdown
Member

Looks like there is a conversion issue now on graph and Indicator.
Graph height is 4GHz
image
image

@vjr

vjr commented Sep 14, 2026

Copy link
Copy Markdown
Member Author

Looks like there is a conversion issue now on graph and Indicator. Graph height is 4GHz image image

@stsdc fixed in 60056b3

@vjr

vjr commented Sep 14, 2026

Copy link
Copy Markdown
Member Author

Definitely moving this to a utility is great. I think we should follow how GLib format_size works here at least for localization. They have great comments and it seems they translate the unit separately from the final string (probably for RTL or languages that don’t use spaces etc) https://github.com/GNOME/glib/blob/main/glib/gutils.c#L2834

@danirabbit i've made RTL/LTR in 9aa933e but can revert this commit if not ok - otherwise there doesn't seem to be a localisation regression from main branch.

@vjr
vjr requested review from a team and ryonakano September 14, 2026 05:17
@vjr

vjr commented Sep 15, 2026

Copy link
Copy Markdown
Member Author

Addressed #541 (review) in bd9dffa

@vjr

vjr commented Sep 15, 2026

Copy link
Copy Markdown
Member Author

Further review comments in #541 (review) addressed in 724fa66 hope it's better now @ryonakano ?

Comment thread src/Utils.vala Outdated
Comment thread src/Utils.vala Outdated
Comment thread src/Utils.vala Outdated
Comment thread src/Utils.vala Outdated
@vjr

vjr commented Sep 15, 2026

Copy link
Copy Markdown
Member Author

Argh! Thanks for your patience @ryonakano I hope 3a32e82 finally addresses all remaining feedback?

@vjr
vjr requested a review from ryonakano September 15, 2026 14:10
@ryonakano

Copy link
Copy Markdown
Member

The frequency area is shown as dimmed on my side. Is this expected?

Before

スクリーンショット 2026-09-16 00 25 29

After

スクリーンショット 2026-09-16 00 23 31

@vjr

vjr commented Sep 15, 2026

Copy link
Copy Markdown
Member Author

@ryonakano thanks for catching this, it is also evident in dark mode but i did not even notice it! should be fixed by 3305fd8 which was just a hunch!

@ryonakano ryonakano left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks.

@vjr
vjr merged commit 47992c3 into main Sep 15, 2026
3 of 7 checks passed
@vjr
vjr deleted the vishal/cpu-frequency-mhz branch September 15, 2026 22:56
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.

4 participants