From 4af423a2a09683acf0a9ad1e0a77bc45c2c843d9 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Thu, 28 Sep 2017 11:09:59 +0200 Subject: Add timestamp to diagnostic message event too Change-Id: Id01a15efe1b6aa063ac9bb2d3989ff195035eeb0 Signed-off-by: Romain Forlot --- low-can-binding/utils/openxc-utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'low-can-binding/utils') diff --git a/low-can-binding/utils/openxc-utils.cpp b/low-can-binding/utils/openxc-utils.cpp index 35b7d9c9..3db964d8 100644 --- a/low-can-binding/utils/openxc-utils.cpp +++ b/low-can-binding/utils/openxc-utils.cpp @@ -366,7 +366,7 @@ bool jsonify_vehicle(const openxc_VehicleMessage& v_msg, json_object* json) { if(v_msg.has_timestamp) { - json_object_object_add(json, "timestamp", json_object_new_double(v_msg.timestamp)); + json_object_object_add(json, "timestamp", json_object_new_int64(v_msg.timestamp)); return true; } return true; -- cgit 1.2.3-korg