Commit 6f6999be authored by hjk's avatar hjk

Debugger: Fix boost/time dumpers with Python 3

Change-Id: Ia93034641889603c4de57babf0117132eeb0c0cb
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent bec05352
......@@ -95,14 +95,14 @@ def qdump__boost__gregorian__date(d, value):
d.putNumChild(0)
def qdump__boost__posix_time__ptime(d, item):
ms = int(item["time_"]["time_count_"]["value_"]) / 1000
def qdump__boost__posix_time__ptime(d, value):
ms = int(int(value["time_"]["time_count_"]["value_"]) / 1000)
d.putValue("%s/%s" % divmod(ms, 86400000), JulianDateAndMillisecondsSinceMidnight)
d.putNumChild(0)
def qdump__boost__posix_time__time_duration(d, item):
d.putValue(int(item["ticks_"]["value_"]) / 1000, MillisecondsSinceMidnight)
def qdump__boost__posix_time__time_duration(d, value):
d.putValue(int(int(value["ticks_"]["value_"]) / 1000), MillisecondsSinceMidnight)
d.putNumChild(0)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment