kuri pushed a commit to branch ecore-1.7.

commit c7d927e92176cfe673b79a0ccab68737ac96b0a6
Author: Guillaume Friloux <[email protected]>
Date:   Fri May 24 14:06:08 2013 +0200

    cl->start_time isnt initialized, so ecore_con_client_uptime_get() just
    doesnt work.
    This patch fixes it.
    Bug found by asdfuser.
---
 src/lib/ecore_con/ecore_con.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/ecore_con/ecore_con.c b/src/lib/ecore_con/ecore_con.c
index 0670e0d..309b24a 100644
--- a/src/lib/ecore_con/ecore_con.c
+++ b/src/lib/ecore_con/ecore_con.c
@@ -1121,6 +1121,7 @@ ecore_con_event_client_add(Ecore_Con_Client *cl)
    cl->event_count = eina_list_append(cl->event_count, e);
    cl->host_server->event_count = 
eina_list_append(cl->host_server->event_count, e);
    _ecore_con_cl_timer_update(cl);
+   cl->start_time = ecore_time_get();
    e->client = cl;
    if (cl->upgrade) ev = ECORE_CON_EVENT_CLIENT_UPGRADE;
    ecore_event_add(ev, e,

-- 

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may

Reply via email to