Skip to content

Commit

Permalink
Merge pull request #24 from ns-jtenberge/patch-1
Browse files Browse the repository at this point in the history
Correct data types for connection counts
  • Loading branch information
thaJeztah authored May 31, 2022
2 parents d5d89be + dc83eb7 commit 5a897d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netlink.go
Original file line number Diff line number Diff line change
Expand Up @@ -447,9 +447,9 @@ func assembleDestination(attrs []syscall.NetlinkRouteAttr) (*Destination, error)
case ipvsDestAttrLowerThreshold:
d.LowerThreshold = native.Uint32(attr.Value)
case ipvsDestAttrActiveConnections:
d.ActiveConnections = int(native.Uint16(attr.Value))
d.ActiveConnections = int(native.Uint32(attr.Value))
case ipvsDestAttrInactiveConnections:
d.InactiveConnections = int(native.Uint16(attr.Value))
d.InactiveConnections = int(native.Uint32(attr.Value))
case ipvsDestAttrStats:
stats, err := assembleStats(attr.Value)
if err != nil {
Expand Down

0 comments on commit 5a897d5

Please sign in to comment.