Documentation
¶
Overview ¶
Package hwmon reads the temperature of the processor from the hwmon chips the kernel lists in /sys/class/hwmon.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CPUTemperature ¶
CPUTemperature is the temperature of the processor in millidegrees, as the chips under root (/sys/class/hwmon) report it: the hottest chip of the first name in cpuChips the box has (coretemp has one per socket), and false when it has none or none that can be read. A chip's number is not fixed (the battery and the charger of a laptop take the first ones), which is why the chip is found by its name and never by hwmon0.
Types ¶
This section is empty.