Closed ironsteel closed 2 years ago
Uvarint expects a protocol buffer bit format and when the value from ipmitool is >= 0x80 Uvarint returns 0
So pad the hex string with 0's to 8 bytes and use BigEndian.Uint64 for converting to int
I've also added a unit test
Hi, this pull request is being closed because this repo is (or will be) archived and is not maintained since years.
Uvarint expects a protocol buffer bit format and when the value from ipmitool is >= 0x80 Uvarint returns 0
So pad the hex string with 0's to 8 bytes and use BigEndian.Uint64 for converting to int