We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 37c8929 + 8795012 commit 12dcf30Copy full SHA for 12dcf30
pidusage.go
@@ -58,12 +58,13 @@ func init() {
58
fnMap["darwin"] = wrapper("ps")
59
fnMap["sunos"] = wrapper("ps")
60
fnMap["freebsd"] = wrapper("ps")
61
+ fnMap["openbsd"] = wrapper("proc")
62
fnMap["aix"] = wrapper("ps")
63
fnMap["linux"] = wrapper("proc")
64
fnMap["netbsd"] = wrapper("proc")
65
fnMap["win"] = wrapper("win")
66
- if platform == "linux" || platform == "netbsd" {
67
+ if platform == "linux" || platform == "netbsd" || platform == "openbsd" {
68
initProc()
69
}
70
0 commit comments