Skip to content

Commit

Permalink
Merge pull request #13 from NetworksAreMadeOfString/master
Browse files Browse the repository at this point in the history
Add support for OpenBSD
  • Loading branch information
struCoder authored Aug 13, 2021
2 parents 37c8929 + 8795012 commit 12dcf30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pidusage.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,13 @@ func init() {
fnMap["darwin"] = wrapper("ps")
fnMap["sunos"] = wrapper("ps")
fnMap["freebsd"] = wrapper("ps")
fnMap["openbsd"] = wrapper("proc")
fnMap["aix"] = wrapper("ps")
fnMap["linux"] = wrapper("proc")
fnMap["netbsd"] = wrapper("proc")
fnMap["win"] = wrapper("win")

if platform == "linux" || platform == "netbsd" {
if platform == "linux" || platform == "netbsd" || platform == "openbsd" {
initProc()
}
}
Expand Down

0 comments on commit 12dcf30

Please sign in to comment.