From: Aaron Bannert Date: Tue, 16 Jul 2002 06:35:41 +0000 (+0000) Subject: Optimize away a couple 64bit integer divides. X-Git-Tag: 2.0.40~219 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e4e4380ff835993899d7a7a65ff1c26886ee36e4;p=apache Optimize away a couple 64bit integer divides. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96070 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index 45a0865574..e15a44f9aa 100644 --- a/modules/http/http_protocol.c +++ b/modules/http/http_protocol.c @@ -2588,7 +2588,7 @@ AP_DECLARE(char *) ap_make_etag(request_rec *r, int force_weak) * be modified again later in the second, and the validation * would be incorrect. */ - if ((apr_time_sec(r->request_time) - apr_time_sec(r->mtime) > 1) && + if ((r->request_time - r->mtime > (1 * APR_USEC_PER_SEC)) && !force_weak) { weak = NULL; weak_len = 0;