| Summary: | The CPU temperature shown for FreeBSD is wrong | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] ksystemstats | Reporter: | Henry Hu <henry.hu.sh> |
| Component: | General | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | ahiemstra, nate |
| Priority: | NOR | ||
| Version First Reported In: | 6.2.3 | ||
| Target Milestone: | --- | ||
| Platform: | FreeBSD Ports | ||
| OS: | FreeBSD | ||
| Latest Commit: | Version Fixed/Implemented In: | Plasma 6.3 | |
| Sentry Crash Report: | |||
|
Description
Henry Hu
2024-12-16 03:44:51 UTC
I would like to try to create a patch for this, but I can't even login into invent.kde.org, although I can log into KDE Identity. I'd recommend emailing sysadmin@kde.org for help getting that fixed. Thanks for wanting to submit a patch! Created a merge request (https://invent.kde.org/plasma/ksystemstats/-/merge_requests/99) for this. It turns out FreeBSD exports CPU temp as deci-Kelvin (see FreeBSD's sysctl code here: https://github.com/freebsd/freebsd-src/blob/b762b199afc6ed56ac95ca19c7fc29c2927fa85c/sbin/sysctl/sysctl.c#L1231), so 32C is exported as (32 + 273.15) * 10 = 3051.5; thus, we need to convert it back. This was fixed with https://invent.kde.org/plasma/ksystemstats/-/merge_requests/101 |