|
|
|
@ -26,6 +26,7 @@ type IOCountersStat struct {
|
|
|
|
|
Dropout uint64 `json:"dropout"` // total number of outgoing packets which were dropped (always 0 on OSX and BSD)
|
|
|
|
|
Fifoin uint64 `json:"fifoin"` // total number of FIFO buffers errors while receiving
|
|
|
|
|
Fifoout uint64 `json:"fifoout"` // total number of FIFO buffers errors while sending
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Addr is implemented compatibility to psutil
|
|
|
|
@ -121,7 +122,6 @@ func InterfacesWithContext(ctx context.Context) ([]InterfaceStat, error) {
|
|
|
|
|
for _, ifi := range is {
|
|
|
|
|
|
|
|
|
|
var flags []string
|
|
|
|
|
|
|
|
|
|
if ifi.Flags&net.FlagUp != 0 {
|
|
|
|
|
flags = append(flags, "up")
|
|
|
|
|
}
|
|
|
|
|