Doesn't this change make us sleep a full second now, instead of the remainder of the current second?
Sander > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: 15 July 2002 09:45 > To: [EMAIL PROTECTED] > Subject: cvs commit: httpd-2.0/modules/metadata mod_unique_id.c > > > wrowe 2002/07/15 00:45:11 > > Modified: modules/metadata mod_unique_id.c > Log: > The macros remove how much legibility? > > Revision Changes Path > 1.41 +1 -3 httpd-2.0/modules/metadata/mod_unique_id.c > > Index: mod_unique_id.c > =================================================================== > RCS file: /home/cvs/httpd-2.0/modules/metadata/mod_unique_id.c,v > retrieving revision 1.40 > retrieving revision 1.41 > diff -u -r1.40 -r1.41 > --- mod_unique_id.c 30 Jun 2002 04:30:41 -0000 1.40 > +++ mod_unique_id.c 15 Jul 2002 07:45:11 -0000 1.41 > @@ -175,7 +175,6 @@ > static int unique_id_global_init(apr_pool_t *p, apr_pool_t *plog, apr_pool_t >*ptemp, server_rec *main_server) > { > char str[APRMAXHOSTLEN + 1]; > - apr_short_interval_time_t pause; > apr_status_t rv; > char *ipaddrstr; > apr_sockaddr_t *sockaddr; > @@ -253,8 +252,7 @@ > * next second. > */ > now = apr_time_now(); > - pause = (apr_short_interval_time_t)(1000000 - apr_time_usec(now)); > - apr_sleep(pause); > + apr_sleep(apr_time_from_sec(1)); > return OK; > }
