Skip to content

Commit

Permalink
Add missing method for OpenBSD (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoriano authored and ruflin committed Feb 26, 2018
1 parent a3814ce commit 01b55ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sigar_openbsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 01b55ae

Please sign in to comment.