Enlightenment CVS committal Author : morlenxus Project : e_modules Module : tclock
Dir : e_modules/tclock Modified Files: e_mod_main.c Log Message: performance fix =================================================================== RCS file: /cvs/e/e_modules/tclock/e_mod_main.c,v retrieving revision 1.45 retrieving revision 1.46 diff -u -3 -r1.45 -r1.46 --- e_mod_main.c 30 Dec 2006 23:34:00 -0000 1.45 +++ e_mod_main.c 3 Feb 2007 06:10:51 -0000 1.46 @@ -246,6 +246,8 @@ struct tm *local_time; char buf[1024]; + current_time = time (NULL); + local_time = localtime (¤t_time); for (l = tclock_config->instances; l; l = l->next) { inst = l->data; @@ -264,8 +266,6 @@ edje_object_message_signal_process (inst->tclock); memset (buf, 0, sizeof (buf)); - current_time = time (NULL); - local_time = localtime (¤t_time); strftime (buf, 1024, ci->time_format, local_time); edje_object_part_text_set (inst->tclock, "tclock_time", buf); ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs