You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gopsutil/net
Cameron Sparr 5af5f08785 Fix NetIOCounter windows interface behavior
addresses a few things:

- Windows has a concept of both a network "interface" and an "adapter"
- These are almost always a one-to-one relationship, though there can be
esoteric instances where they are not.
- I believe the gopsutil NetIOCounters function should only return on a
per-interface level, since this is the behavior on linux/darwin.

Previously, the plugin was basically ignoring the actual interfaces
returned from net.Interfaces(). Instead, it was looping over the net
adapters for each interface, somewhat uselessly.

FWIW, the code for getAdapterList() doesn't exist in the Go standard lib
anymore.

closes #245
9 years ago
..
net.go add Uids field to net_linux 9 years ago
net_darwin.go only run ifconfig/netstat if necessary, add some tests 9 years ago
net_darwin_test.go only run ifconfig/netstat if necessary, add some tests 9 years ago
net_fallback.go Add fallback code for all unsupported operating systems. 9 years ago
net_freebsd.go add Timeout to invoke command and use common.Invoke refs: #201 9 years ago
net_linux.go remove unused code 9 years ago
net_linux_test.go [net]linux: add a test and fix private field name. 9 years ago
net_test.go fix net_test.go 9 years ago
net_unix.go fixed by golint. 9 years ago
net_windows.go Fix NetIOCounter windows interface behavior 9 years ago