2024-02-17 03:48:29 +00:00
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
2021-12-22 21:54:41 +00:00
|
|
|
//go:build aix
|
2021-11-09 13:14:54 +00:00
|
|
|
|
|
|
|
package load
|
|
|
|
|
|
|
|
import (
|
2021-12-22 21:46:33 +00:00
|
|
|
"context"
|
2021-11-09 13:14:54 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func Avg() (*AvgStat, error) {
|
2021-12-22 21:46:33 +00:00
|
|
|
return AvgWithContext(context.Background())
|
2021-11-09 13:14:54 +00: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-22 21:46:33 +00:00
|
|
|
return MiscWithContext(context.Background())
|
2021-11-09 13:14:54 +00:00
|
|
|
}
|