fix tzset call.

SVN revision: 34679
This commit is contained in:
Carsten Haitzler 2008-05-27 08:00:17 +00:00
parent eaa23bebce
commit e3519ff383
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ _embryo_time_date(Embryo_Program *ep, Embryo_Cell *params)
if (params[0] != (8 * sizeof(Embryo_Cell))) return 0;
gettimeofday(&timev, NULL);
tt = (time_t)(timev.tv_sec);
if ((tt - last_tzset) < 1)
if (tt > (last_tzset + 1))
{
last_tzset = tt;
tzset();