Skip to content

Commit

Permalink
fix: timeticks as i32 instead of i64
Browse files Browse the repository at this point in the history
  • Loading branch information
thebinary committed May 27, 2020
1 parent 2e1dfbf commit f60cba1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ func ToPbSnmpPDU(pdu gosnmp.SnmpPDU) (pbSnmpPdu *pb.SnmpPDU) {
Str: string(pdu.Value.([]byte)),
}
case gosnmp.TimeTicks:
pbSnmpPdu.Value = &pb.SnmpPDU_UI64{
UI64: uint64(pdu.Value.(uint)),
pbSnmpPdu.Value = &pb.SnmpPDU_UI32{
UI32: pdu.Value.(uint32),
}
case gosnmp.Integer:
pbSnmpPdu.Value = &pb.SnmpPDU_I32{
Expand Down

0 comments on commit f60cba1

Please sign in to comment.