summaryrefslogtreecommitdiff
path: root/legacy/embryo/src/lib/embryo_time.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2008-05-27 08:00:17 +0000
committerCarsten Haitzler <raster@rasterman.com>2008-05-27 08:00:17 +0000
commite3519ff383f59cc2e0a9618e457b147dafd2cb37 (patch)
tree14a15cfbe9073d2e6ecef2de5ce68a31e35b9b04 /legacy/embryo/src/lib/embryo_time.c
parenteaa23bebce68a0b6eb7aa5b220bde13b2ee6e5c3 (diff)
fix tzset call.
SVN revision: 34679
Diffstat (limited to '')
-rw-r--r--legacy/embryo/src/lib/embryo_time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/legacy/embryo/src/lib/embryo_time.c b/legacy/embryo/src/lib/embryo_time.c
index 48112fd4b7..183dde60ff 100644
--- a/legacy/embryo/src/lib/embryo_time.c
+++ b/legacy/embryo/src/lib/embryo_time.c
@@ -37,7 +37,7 @@ _embryo_time_date(Embryo_Program *ep, Embryo_Cell *params)
37 if (params[0] != (8 * sizeof(Embryo_Cell))) return 0; 37 if (params[0] != (8 * sizeof(Embryo_Cell))) return 0;
38 gettimeofday(&timev, NULL); 38 gettimeofday(&timev, NULL);
39 tt = (time_t)(timev.tv_sec); 39 tt = (time_t)(timev.tv_sec);
40 if ((tt - last_tzset) < 1) 40 if (tt > (last_tzset + 1))
41 { 41 {
42 last_tzset = tt; 42 last_tzset = tt;
43 tzset(); 43 tzset();