[aix]: move tempereture from host to sensors package.

pull/1628/head
shirou 10 months ago
parent c34d29a8bf
commit aca0ba4517

@ -1,5 +1,5 @@
// SPDX-License-Identifier: BSD-3-Clause
//go:build aix
// +build aix
package host
@ -15,8 +15,6 @@ import (
// from https://www.ibm.com/docs/en/aix/7.2?topic=files-utmph-file
const (
user_PROCESS = 7
hostTemperatureScale = 1000.0 // Not part of the linked file, but kept just in case it becomes relevant
)
func HostIDWithContext(ctx context.Context) (string, error) {
@ -196,7 +194,3 @@ func KernelArch() (arch string, err error) {
func VirtualizationWithContext(ctx context.Context) (string, string, error) {
return "", "", common.ErrNotImplementedError
}
func SensorsTemperaturesWithContext(ctx context.Context) ([]TemperatureStat, error) {
return nil, common.ErrNotImplementedError
}

@ -0,0 +1,18 @@
// SPDX-License-Identifier: BSD-3-Clause
//go:build aix
package sensors
import (
"context"
"github.com/shirou/gopsutil/v4/internal/common"
)
const (
hostTemperatureScale = 1000.0 // Not part of the linked file, but kept just in case it becomes relevant
)
func VirtualizationWithContext(ctx context.Context) (string, string, error) {
return "", "", common.ErrNotImplementedError
}

@ -1,5 +1,5 @@
// SPDX-License-Identifier: BSD-3-Clause
//go:build !darwin && !linux && !freebsd && !openbsd && !netbsd && !solaris && !windows
//go:build !darwin && !linux && !freebsd && !openbsd && !netbsd && !solaris && !windows && !aix
package sensors

Loading…
Cancel
Save