From 2c271d13f7e476e9b81760ca58584fa9c8bcc980 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Mon, 15 Jul 2002 08:11:11 +0000 Subject: [PATCH] Sleep INTO the next second, not for the entire next second. Observed by Sander Striker git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96058 13f79535-47bb-0310-9956-ffa450edef68 --- modules/metadata/mod_unique_id.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/metadata/mod_unique_id.c b/modules/metadata/mod_unique_id.c index 9e9a8edbb4..abfc151606 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_sleep(apr_time_from_sec(1) - apr_time_now()); return OK; } -- 2.50.1