Skip to content

Commit

Permalink
Changed type of interface counters to uint64
Browse files Browse the repository at this point in the history
resolves #25
  • Loading branch information
czerwonk authored Jan 29, 2019
1 parent ad40f3c commit 8a60e9a
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions interfaces/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ type PhyInterface struct {
Stats TrafficStat `xml:"traffic-statistics"`
LogicalInterfaces []LogInterface `xml:"logical-interface"`
InputErrors struct {
Drops int64 `xml:"input-drops"`
Errors int64 `xml:"input-errors"`
Drops uint64 `xml:"input-drops"`
Errors uint64 `xml:"input-errors"`
} `xml:"input-error-list"`
OutputErrors struct {
Drops int64 `xml:"output-drops"`
Errors int64 `xml:"output-errors"`
Drops uint64 `xml:"output-drops"`
Errors uint64 `xml:"output-errors"`
} `xml:"output-error-list"`
}

Expand All @@ -31,16 +31,16 @@ type LogInterface struct {
}

type TrafficStat struct {
InputBytes int64 `xml:"input-bytes"`
InputPackets int64 `xml:"input-packets"`
OutputBytes int64 `xml:"output-bytes"`
OutputPackets int64 `xml:"output-packets"`
InputBytes uint64 `xml:"input-bytes"`
InputPackets uint64 `xml:"input-packets"`
OutputBytes uint64 `xml:"output-bytes"`
OutputPackets uint64 `xml:"output-packets"`
IPv6Traffic IPv6Stat `xml:"ipv6-transit-statistics"`
}

type IPv6Stat struct {
InputBytes int64 `xml:"input-bytes"`
InputPackets int64 `xml:"input-packets"`
OutputBytes int64 `xml:"output-bytes"`
OutputPackets int64 `xml:"output-packets"`
InputBytes uint64 `xml:"input-bytes"`
InputPackets uint64 `xml:"input-packets"`
OutputBytes uint64 `xml:"output-bytes"`
OutputPackets uint64 `xml:"output-packets"`
}

0 comments on commit 8a60e9a

Please sign in to comment.