vendor: update elastic/gosigar so that it compiles on OpenBSD (#16542)
This commit is contained in:
committed by
Felix Lange
parent
b15eb665ee
commit
744428cb03
5
vendor/github.com/elastic/gosigar/sigar_freebsd.go
generated
vendored
5
vendor/github.com/elastic/gosigar/sigar_freebsd.go
generated
vendored
@ -4,6 +4,7 @@ package gosigar
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"runtime"
|
||||
"strconv"
|
||||
"strings"
|
||||
"unsafe"
|
||||
@ -97,6 +98,10 @@ func (self *ProcFDUsage) Get(pid int) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (self *HugeTLBPages) Get() error {
|
||||
return ErrNotImplemented{runtime.GOOS}
|
||||
}
|
||||
|
||||
func parseCpuStat(self *Cpu, line string) error {
|
||||
fields := strings.Fields(line)
|
||||
|
||||
|
Reference in New Issue
Block a user