From: Sander Striker Date: Mon, 15 Jul 2002 08:26:06 +0000 (+0000) Subject: Eat our own dogfood when it comes to the time macros. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=72969949b11c8c05c843095065c4ecb9e42116d2;p=apache Eat our own dogfood when it comes to the time macros. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96061 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/metadata/mod_unique_id.c b/modules/metadata/mod_unique_id.c index d3fc26439d..7c87399f37 100644 --- a/modules/metadata/mod_unique_id.c +++ b/modules/metadata/mod_unique_id.c @@ -250,7 +250,7 @@ static int unique_id_global_init(apr_pool_t *p, apr_pool_t *plog, apr_pool_t *pt * But protecting against it is relatively cheap. We just sleep into the * next second. */ - apr_sleep(apr_time_from_sec(1) - (apr_time_now() % APR_USEC_PER_SEC)); + apr_sleep(apr_time_from_sec(1) - apr_time_usec(apr_time_now())); return OK; }