You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by br...@apache.org on 2002/07/05 00:40:06 UTC
cvs commit: httpd-2.0/server util_time.c
brianp 2002/07/04 15:40:06
Modified: server util_time.c
Log:
replaced APR_USEC_PER_SEC division with the new time macros
Revision Changes Path
1.10 +2 -2 httpd-2.0/server/util_time.c
Index: util_time.c
===================================================================
RCS file: /home/cvs/httpd-2.0/server/util_time.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- util_time.c 21 Apr 2002 08:41:01 -0000 1.9
+++ util_time.c 4 Jul 2002 22:40:06 -0000 1.10
@@ -75,7 +75,7 @@
struct exploded_time_cache_element *cache,
int use_gmt)
{
- apr_int64_t seconds = t / APR_USEC_PER_SEC;
+ apr_int64_t seconds = apr_time_sec(t);
struct exploded_time_cache_element *cache_element =
&(cache[seconds % TIME_CACHE_SIZE]);
struct exploded_time_cache_element cache_element_snapshot;
@@ -157,7 +157,7 @@
memcpy(&(cache_element->xt), xt, sizeof(apr_time_exp_t));
cache_element->t_validate = seconds;
}
- xt->tm_usec = (int)(t % APR_USEC_PER_SEC);
+ xt->tm_usec = (int)apr_time_usec(t);
return APR_SUCCESS;
}