From e0b1d62a4d3b5e635d2ef9c3947f38f2b077b36a Mon Sep 17 00:00:00 2001 From: Shirou WAKAYAMA Date: Fri, 11 Sep 2015 11:24:03 +0900 Subject: [PATCH] net[darwin]: add netstat -idbn example in the comment. --- net/net_darwin.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/net/net_darwin.go b/net/net_darwin.go index 7fb2171..d49fc01 100644 --- a/net/net_darwin.go +++ b/net/net_darwin.go @@ -10,6 +10,11 @@ import ( "github.com/shirou/gopsutil/common" ) +// example of netstat -idbn output on yosemite +// Name Mtu Network Address Ipkts Ierrs Ibytes Opkts Oerrs Obytes Coll Drop +// lo0 16384 869107 0 169411755 869107 0 169411755 0 0 +// 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() if err != nil {