From 01b55aeacddd04369e674d32e0eb9a3e7e4394fe Mon Sep 17 00:00:00 2001 From: Jaime Soriano Pastor Date: Mon, 26 Feb 2018 03:41:38 +0100 Subject: [PATCH] Add missing method for OpenBSD (#99) --- sigar_openbsd.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sigar_openbsd.go b/sigar_openbsd.go index 4f1383a6b..0d2ffd2eb 100644 --- a/sigar_openbsd.go +++ b/sigar_openbsd.go @@ -381,6 +381,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])