mirror of https://github.com/shirou/gopsutil
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 #245pull/275/head
parent
6f43e5d707
commit
5af5f08785
Loading…
Reference in New Issue