vendor: update elastic/gosigar so that it compiles on OpenBSD (#16542)

This commit is contained in:
Fabian Raetz
2018-04-21 19:19:12 +02:00
committed by Felix Lange
parent b15eb665ee
commit 744428cb03
12 changed files with 98 additions and 7 deletions

View File

@ -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)