aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/elastic/gosigar/sigar_openbsd.go
diff options
context:
space:
mode:
authorFabian Raetz <fabian.raetz@gmail.com>2018-04-22 01:19:12 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-04-22 01:19:12 +0800
commit744428cb03ea8de8f219708f57d2e197acb6689b (patch)
tree8c9b67041fcf5c573b2a57747af3a90e647f3efb /vendor/github.com/elastic/gosigar/sigar_openbsd.go
parentb15eb665ee3c373a361b050cd8fc726e31c4a750 (diff)
downloaddexon-744428cb03ea8de8f219708f57d2e197acb6689b.tar.gz
dexon-744428cb03ea8de8f219708f57d2e197acb6689b.tar.zst
dexon-744428cb03ea8de8f219708f57d2e197acb6689b.zip
vendor: update elastic/gosigar so that it compiles on OpenBSD (#16542)
Diffstat (limited to 'vendor/github.com/elastic/gosigar/sigar_openbsd.go')
-rw-r--r--vendor/github.com/elastic/gosigar/sigar_openbsd.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/vendor/github.com/elastic/gosigar/sigar_openbsd.go b/vendor/github.com/elastic/gosigar/sigar_openbsd.go
index 4f1383a6b..e4371b8b6 100644
--- a/vendor/github.com/elastic/gosigar/sigar_openbsd.go
+++ b/vendor/github.com/elastic/gosigar/sigar_openbsd.go
@@ -294,6 +294,10 @@ func (self *Swap) Get() error {
return nil
}
+func (self *HugeTLBPages) Get() error {
+ return ErrNotImplemented{runtime.GOOS}
+}
+
func (self *Cpu) Get() error {
load := [C.CPUSTATES]C.long{C.CP_USER, C.CP_NICE, C.CP_SYS, C.CP_INTR, C.CP_IDLE}
@@ -381,6 +385,10 @@ func (self *ProcFDUsage) Get(pid int) error {
return ErrNotImplemented{runtime.GOOS}
}
+func (self *Rusage) Get(pid int) error {
+ return ErrNotImplemented{runtime.GOOS}
+}
+
func fillCpu(cpu *Cpu, load [C.CPUSTATES]C.long) {
cpu.User = uint64(load[0])
cpu.Nice = uint64(load[1])