2021-12-23 05:54:41 +08:00
|
|
|
//go:build aix
|
2021-11-09 21:14:54 +08:00
|
|
|
// +build aix
|
|
|
|
|
|
|
|
package load
|
|
|
|
|
|
|
|
import (
|
2021-12-23 05:46:33 +08:00
|
|
|
"context"
|
2021-11-09 21:14:54 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
func Avg() (*AvgStat, error) {
|
2021-12-23 05:46:33 +08:00
|
|
|
return AvgWithContext(context.Background())
|
2021-11-09 21:14:54 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// Misc returns miscellaneous host-wide statistics.
|
|
|
|
// darwin use ps command to get process running/blocked count.
|
|
|
|
// Almost same as Darwin implementation, but state is different.
|
|
|
|
func Misc() (*MiscStat, error) {
|
2021-12-23 05:46:33 +08:00
|
|
|
return MiscWithContext(context.Background())
|
2021-11-09 21:14:54 +08:00
|
|
|
}
|