On Thu, Nov 8, 2012 at 7:29 PM, Enlightenment SVN < [email protected]> wrote:
> Log: > [eina] Better pretty printing of eina_value timeval buddies. > > Barbieri, fair enough? Or the last code was intentional? > On the former, I'll commit it to the unified EFL tree too. > fair enough, I just did the lazy version first :-) (printk model) > > > > Author: glima > Date: 2012-11-08 13:29:06 -0800 (Thu, 08 Nov 2012) > New Revision: 79003 > Trac: http://trac.enlightenment.org/e/changeset/79003 > > Modified: > trunk/eina/src/lib/eina_value.c > > Modified: trunk/eina/src/lib/eina_value.c > =================================================================== > --- trunk/eina/src/lib/eina_value.c 2012-11-08 17:40:33 UTC (rev 79002) > +++ trunk/eina/src/lib/eina_value.c 2012-11-08 21:29:06 UTC (rev 79003) > @@ -3557,7 +3557,8 @@ > { > const char *other_mem; > char buf[64]; > - snprintf(buf, sizeof(buf), "%ld.%06ld", v.tv_sec, v.tv_usec); > + strftime(buf, sizeof buf, "%Y-%m-%d %H:%M:%S", > localtime(&(v.tv_sec))); > + > other_mem = buf; /* required due &buf == buf */ > return eina_value_type_pset(convert, convert_mem, &other_mem); > } > > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_nov > _______________________________________________ > enlightenment-svn mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/enlightenment-svn > -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -------------------------------------- MSN: [email protected] Skype: gsbarbieri Mobile: +55 (19) 9225-2202 ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
