Skip to content
Snippets Groups Projects
Commit b1711d15 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ipc_logging: Fix QTimer packing functions"

parents a75ad3ae 11dcff42
No related branches found
No related tags found
No related merge requests found
...@@ -268,7 +268,7 @@ class TsvQTimer(object): ...@@ -268,7 +268,7 @@ class TsvQTimer(object):
self.fTimestamp = fTimestamp self.fTimestamp = fTimestamp
tsv = LogTSV() tsv = LogTSV()
data = tsv.pack(TSV_TYPE_QTIMER, 8) data = tsv.pack(TSV_TYPE_QTIMER, 8)
data += struct.pack('<Q', fTimestamp * 1.0E9) data += struct.pack('<Q', fTimestamp)
return data return data
def __str__(self): def __str__(self):
...@@ -381,6 +381,7 @@ class LogMessageString(object): ...@@ -381,6 +381,7 @@ class LogMessageString(object):
data = self.timestamp.pack(fTimestamp) data = self.timestamp.pack(fTimestamp)
if fQTimer is not None: if fQTimer is not None:
self.qtimer = TsvQTimer()
data += self.qtimer.pack(fQTimer) data += self.qtimer.pack(fQTimer)
data += TsvByteArray().pack(strMessage) data += TsvByteArray().pack(strMessage)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment