summaryrefslogtreecommitdiffstats
path: root/linux/LibSensors.c
Commit message (Collapse)AuthorAgeFilesLines
* Use size_t for array indices consistentlyBenny Baumann2024-04-051-5/+5
| | | | This avoids a compiler warning with GCC 14 and LTO claiming uninitialized use of data[i] in the last loop.
* Merge branch 'style-header-consistency' of https://github.com/BenBE/htop ↵Nathan Scott2023-10-101-2/+9
|\ | | | | | | into BenBE-style-header-consistency
| * Add missing copyright/file headersBenny Baumann2023-05-251-0/+7
| |
| * Make header sort order consistent againBenny Baumann2023-05-241-2/+2
| |
| * Always mark config.h with IWYU pragma: keepBenny Baumann2023-05-241-1/+1
| |
* | Replace isnan() with better comparisons (isgreater(), etc.)Explorer092023-08-181-11/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The standard isnan() function is defined to never throw FP exceptions even when the argument is a "signaling" NaN. This makes isnan() more expensive than (x != x) expression unless the compiler flag '-fno-signaling-nans' is given. Introduce functions isNaN(), isNonnegative(), isPositive(), sumPositiveValues() and compareRealNumbers(), and replace isnan() in htop's codebase with the new functions. These functions utilize isgreater() and isgreaterequal() comparisons, which do not throw FP exceptions on "quiet" NaNs, which htop uses extensively. With isnan() removed, there is no need to suppress the warning '-Wno-c11-extensions' in FreeBSD. Remove the code from 'configure.ac'. Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
* | Header orderBenny Baumann2023-07-281-1/+2
| |
* | Avoid VLA in LibSensors codeBenny Baumann2023-07-281-1/+4
|/
* Adapt platform code for the new Machine base classNathan Scott2023-05-081-1/+1
| | | | | Move host-centric data to new derived <Platform>Machine classes, separate from process-list-centric data.
* IWYU updateChristian Göttsche2021-08-251-0/+9
|
* Rework CPU countingChristian Göttsche2021-07-181-16/+28
| | | | | | | | | | | Currently htop does not support offline CPUs and hot-swapping, e.g. via echo 0 > /sys/devices/system/cpu/cpu2/online Split the current single cpuCount variable into activeCPUs and existingCPUs. Supersedes: #650 Related: #580
* platform-dependent files included relative to main source directorymayurdahibhate2021-05-101-1/+1
|
* Correct spelling in commentChristian Göttsche2021-03-241-1/+1
|
* Linux: Rework libsensors parsingChristian Göttsche2021-03-191-54/+99
| | | | | | | | | | | | | | | | | | | | | | | | | Do not read driver depended labels, just count the number of temperatures given: on #CPU: platform temp = max cpu temp CPU temps = first to last on #CPU + 1: platform temp = first temp CPU temps = second to last on #CPU / 2: platform temp = max cpu temp CPU temps = first to last concat first to last (with SMT core x + cpu count is the logical core of the physical core x) on #CPU / 2 + 1: platform temp = first temp CPU temps = second to last concat second to last (with SMT core x + cpu count is the logical core of the physical core x) Closes: #529 Closes: #538
* Add configure option to create static htop binaryChristian Göttsche2021-01-251-0/+34
|
* LibSensors: add support for Ryzen CPUsMatej Dian2021-01-061-1/+6
|
* Also find libsensors.so.4 for Fedora and friendsDaniel Lange2020-12-251-5/+7
|
* LibSensors: fix unversioned libsensors library nameChristian Göttsche2020-12-151-2/+2
|
* LibSensors: restore temperature for Raspberry PiChristian Göttsche2020-12-151-0/+3
| | | | | | | sensors output: cpu_thermal-virtual-0 Adapter: Virtual device temp1: +58.0 C (crit = +90.0 C)
* Handle absence of package CPU temperatureChristian Göttsche2020-12-141-7/+58
| | | | Resolves: #389
* Fix dlopen issue for libsensors5 in Debian Buster, BullseyeDaniel Lange2020-12-121-3/+7
| | | | | | | libsensors.so is provided only by the -dev package, so search for libsensors.so.5 (installed from the libsensors5 package) explicitly see: dpkg-query -S libsensors.so
* IWYU updateChristian Göttsche2020-12-061-1/+0
|
* Dynamically load libsensors at runtimeChristian Göttsche2020-12-021-0/+105

© 2014-2024 Faster IT GmbH | imprint | privacy policy