Skip to content

Commit

Permalink
fix: proc network msgType2 rx error
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhouYixun committed Jan 3, 2023
1 parent 6f023f5 commit e6c7937
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions perfd.go
Original file line number Diff line number Diff line change
Expand Up @@ -635,10 +635,10 @@ func (c *perfdNetworking) parseNetworking(data interface{}) {
Type: "network-connection-update",
TimeStamp: time.Now().Unix(),
},
RxBytes: convert2Int64(msgValue[0]),
RxPackets: convert2Int64(msgValue[1]),
TxBytes: convert2Int64(msgValue[2]),
TxPackets: convert2Int64(msgValue[3]),
RxPackets: convert2Int64(msgValue[0]),
RxBytes: convert2Int64(msgValue[1]),
TxPackets: convert2Int64(msgValue[2]),
TxBytes: convert2Int64(msgValue[3]),
}
if value, ok := msgValue[4].(uint64); ok {
netData.RxDups = int64(value)
Expand Down

0 comments on commit e6c7937

Please sign in to comment.