From c656826f0dcb5c6514efc8ef12dab6a6e9a7d710 Mon Sep 17 00:00:00 2001 From: Sung-jae Park Date: Fri, 10 May 2013 14:24:27 +0900 Subject: [PATCH] Add CLICKED time for estimating launching time. Change-Id: I7c3db12a63da36eab212c709ad2b9b4d48f6c725 --- packaging/liblivebox-viewer.spec | 2 +- src/livebox.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packaging/liblivebox-viewer.spec b/packaging/liblivebox-viewer.spec index f9f0239..16b9a0f 100644 --- a/packaging/liblivebox-viewer.spec +++ b/packaging/liblivebox-viewer.spec @@ -1,6 +1,6 @@ Name: liblivebox-viewer Summary: Library for developing the application. -Version: 0.13.1 +Version: 0.13.2 Release: 1 Group: HomeTF/Livebox License: Flora License diff --git a/src/livebox.c b/src/livebox.c index 0ceae6f..19fc458 100644 --- a/src/livebox.c +++ b/src/livebox.c @@ -1087,6 +1087,9 @@ EAPI int livebox_click(struct livebox *handler, double x, double y) double timestamp; int ret; + timestamp = util_timestamp(); + DbgPrint("CLICKED: %lf\n", timestamp); + if (!handler) { ErrPrint("Handler is NIL\n"); return LB_STATUS_ERROR_INVALID; @@ -1103,7 +1106,6 @@ EAPI int livebox_click(struct livebox *handler, double x, double y) ErrPrint("Failed to launch app %s\n", handler->lb.auto_launch); } - timestamp = util_timestamp(); packet = packet_create_noack("clicked", "sssddd", handler->pkgname, handler->id, "clicked", timestamp, x, y); if (!packet) { ErrPrint("Failed to build param\n"); -- 2.7.4