mirror of https://github.com/gofiber/fiber.git
🐛 bug: fix gopsutil when compiling for bsd. (#1995)
parent
97ba1d16d5
commit
9761f4e797
|
@ -9,9 +9,12 @@ import (
|
|||
"strings"
|
||||
"unsafe"
|
||||
|
||||
"github.com/gofiber/fiber/v2/internal/gopsutil/common"
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
var invoke common.Invoker = common.Invoke{}
|
||||
|
||||
func Avg() (*AvgStat, error) {
|
||||
return AvgWithContext(context.Background())
|
||||
}
|
||||
|
@ -75,7 +78,7 @@ func MiscWithContext(ctx context.Context) (*MiscStat, error) {
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ret.ProcsCreated = f.forks
|
||||
ret.ProcsCreated = int64(f.forks)
|
||||
|
||||
return &ret, nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue