Documentation
¶
Overview ¶
Package hostsys reads host figures from Linux's /sys, on every architecture PiWorker ships for: the Raspberry Pi and other ARM boards expose the CPU as a thermal zone, x86_64 PCs as a thermal zone (Intel's x86_pkg_temp) or only as a hwmon chip (Intel coretemp, AMD k10temp).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CPUTemperature ¶
CPUTemperature returns the CPU temperature in degrees Celsius, reading the sysfs tree mounted at sys (normally "/sys"). It prefers, in order: a thermal zone whose type names the CPU, a hwmon chip that is the CPU's sensor, and then the lowest-numbered zone with a plausible reading. ok is false when no plausible reading exists.
Types ¶
This section is empty.