Skip to content

Commit

Permalink
Merge pull request #130 from sparrc/ibdnW
Browse files Browse the repository at this point in the history
Add -W flag to netstat on BSD systems
  • Loading branch information
shirou committed Dec 16, 2015
2 parents ff98b44 + 432bcbd commit 134e15b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion net/net_darwin.go
Expand Up @@ -17,7 +17,7 @@ import (
// lo0 16384 ::1/128 ::1 869107 - 169411755 869107 - 169411755 - -
// lo0 16384 127 127.0.0.1 869107 - 169411755 869107 - 169411755 - -
func NetIOCounters(pernic bool) ([]NetIOCountersStat, error) {
out, err := exec.Command("/usr/sbin/netstat", "-ibdn").Output()
out, err := exec.Command("/usr/sbin/netstat", "-ibdnW").Output()
if err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion net/net_freebsd.go
Expand Up @@ -12,7 +12,7 @@ import (
)

func NetIOCounters(pernic bool) ([]NetIOCountersStat, error) {
out, err := exec.Command("/usr/bin/netstat", "-ibdn").Output()
out, err := exec.Command("/usr/bin/netstat", "-ibdnW").Output()
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 134e15b

Please sign in to comment.