]> granicus.if.org Git - apache/commitdiff
Optimize away a couple 64bit integer divides.
authorAaron Bannert <aaron@apache.org>
Tue, 16 Jul 2002 06:35:41 +0000 (06:35 +0000)
committerAaron Bannert <aaron@apache.org>
Tue, 16 Jul 2002 06:35:41 +0000 (06:35 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96070 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_protocol.c

index 45a0865574a411f6a2817cb824e4c04aff7085db..e15a44f9aa5937c4969c5723f9dd08a36e9a4842 100644 (file)
@@ -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;