From: Derrick Brashear Date: Mon, 19 Jul 2004 16:25:16 +0000 (+0000) Subject: pthread-ft-approxtime-is-time-20040719 X-Git-Tag: openafs-devel-1_3_66~34 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=32ee04d17d1709050b567494cb115ec0a4a6b3e0;p=packages%2Fo%2Fopenafs.git pthread-ft-approxtime-is-time-20040719 for tvolser most code paths simply never result in time being updated. seems dangerous. --- diff --git a/src/lwp/fasttime.c b/src/lwp/fasttime.c index ee96ee72b..88783787d 100644 --- a/src/lwp/fasttime.c +++ b/src/lwp/fasttime.c @@ -118,6 +118,12 @@ FT_AGetTimeOfDay(struct timeval *tv, struct timezone *tz) return FT_GetTimeOfDay(tv, tz); } +#ifdef AFS_PTHREAD_ENV +unsigned int FT_ApproxTime(void) +{ + return time(0); +} +#else unsigned int FT_ApproxTime(void) { @@ -126,3 +132,4 @@ FT_ApproxTime(void) } return FT_LastTime.tv_sec; } +#endif