mirror of
https://github.com/henrygd/beszel.git
synced 2026-08-18 00:07:47 +02:00
15 lines
265 B
Go
15 lines
265 B
Go
//go:build freebsd
|
|
|
|
package agent
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/shirou/gopsutil/v4/sensors"
|
|
"golang.org/x/sys/unix"
|
|
)
|
|
|
|
var getSensorTemps = func(ctx context.Context) ([]sensors.TemperatureStat, error) {
|
|
return getFreeBSDSensorTemps(ctx, unix.SysctlUint32)
|
|
}
|