aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/elastic/gosigar/sigar_darwin.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_darwin.go
parentb15eb665ee3c373a361b050cd8fc726e31c4a750 (diff)
downloaddexon-744428cb03ea8de8f219708f57d2e197acb6689b.tar
dexon-744428cb03ea8de8f219708f57d2e197acb6689b.tar.gz
dexon-744428cb03ea8de8f219708f57d2e197acb6689b.tar.bz2
dexon-744428cb03ea8de8f219708f57d2e197acb6689b.tar.lz
dexon-744428cb03ea8de8f219708f57d2e197acb6689b.tar.xz
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_darwin.go')
-rw-r--r--vendor/github.com/elastic/gosigar/sigar_darwin.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/github.com/elastic/gosigar/sigar_darwin.go b/vendor/github.com/elastic/gosigar/sigar_darwin.go
index f989f5160..a90b998c2 100644
--- a/vendor/github.com/elastic/gosigar/sigar_darwin.go
+++ b/vendor/github.com/elastic/gosigar/sigar_darwin.go
@@ -91,6 +91,10 @@ func (self *Swap) Get() error {
return nil
}
+func (self *HugeTLBPages) Get() error {
+ return ErrNotImplemented{runtime.GOOS}
+}
+
func (self *Cpu) Get() error {
var count C.mach_msg_type_number_t = C.HOST_CPU_LOAD_INFO_COUNT
var cpuload C.host_cpu_load_info_data_t