mirror of
https://github.com/henrygd/beszel.git
synced 2026-08-16 15:27:47 +02:00
Adds fan RPM monitoring as a peer to the existing temperature collection, addressing #1918. --------- Co-authored-by: henrygd <hank@henrygd.me>
9 lines
243 B
Go
9 lines
243 B
Go
//go:build linux
|
|
|
|
package agent
|
|
|
|
// hwmonRoot is the sysfs entry point for hardware monitor chips. Each
|
|
// subdirectory (hwmon0, hwmon1, …) is one chip; fan*_input files inside it
|
|
// expose RPM readings.
|
|
const hwmonRoot = "/sys/class/hwmon"
|