diff --git a/pyghmi/ipmi/events.py b/pyghmi/ipmi/events.py index 313043fd..c4f7fb9f 100644 --- a/pyghmi/ipmi/events.py +++ b/pyghmi/ipmi/events.py @@ -447,12 +447,15 @@ class EventHandler(object): sensorid = petdata[28] event_data = petdata[31:34] event = {} - seqnum = struct.unpack_from('>H', buffer(petdata[16:18])) - ltimestamp = struct.unpack_from('>I', buffer(petdata[18:22])) + seqnum = struct.unpack_from('>H', buffer(petdata[16:18]))[0] + ltimestamp = struct.unpack_from('>I', buffer(petdata[18:22]))[0] petack = bytearray(struct.pack('