Fix: return an integer as timestamp from parse_trace_collection_date
authorAntoine Busque <abusque@efficios.com>
Mon, 14 Mar 2016 19:44:34 +0000 (15:44 -0400)
committerAntoine Busque <abusque@efficios.com>
Mon, 14 Mar 2016 19:44:34 +0000 (15:44 -0400)
Signed-off-by: Antoine Busque <abusque@efficios.com>
lttnganalyses/common/parse_utils.py

index be1c6e79c15b21bf9985868d52cca7fdef609c38..026ee387931356067a69981e62bcc5693dd5d6c2 100644 (file)
@@ -412,7 +412,7 @@ def parse_trace_collection_date(collection, date, gmt=False):
     if gmt:
         date_time = date_time + datetime.timedelta(seconds=timezone)
 
-    timestamp_ns = date_time.timestamp() * NSEC_PER_SEC + nsec
+    timestamp_ns = int(date_time.timestamp()) * NSEC_PER_SEC + nsec
 
     return timestamp_ns
 
This page took 0.024274 seconds and 5 git commands to generate.