httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tsuyoshi SASAMOTO <nazon...@super.win.ne.jp>
Subject [patch] cache_util.c
Date Mon, 11 Apr 2005 02:20:13 GMT
Adjust time unit and typo.


Tsuyoshi SASAMOTO
nazonazo@super.win.ne.jp

--- httpd/trunk/modules/cache/cache_util.c	Mon Apr 11 11:00:00 2005
+++ httpd/trunk/modules/cache/cache_util.c	Mon Apr 11 11:00:00 2005
@@ -272,7 +272,7 @@
         if (!(((smaxage != -1) && age < smaxage) ||
               ((maxage != -1) && age < maxage) ||
               (info->expire != APR_DATE_BAD &&
-               (info->expire - info->date) > age))) {
+               apr_time_sec(info->expire - info->date) > age))) {
             /* make sure we don't stomp on a previous warning */
             if ((warn_head == NULL) ||
                 ((warn_head != NULL) && (ap_strstr_c(warn_head, "110") == NULL)))
{
@@ -289,7 +289,7 @@
             (expstr == NULL) && (age > 86400)) {
 
             /* Make sure we don't stomp on a previous warning, and don't dup
-             * a 113 marning that is already present. Also, make sure to add
+             * a 113 warning that is already present. Also, make sure to add
              * the new warning to the correct *headers_out location.
              */
             if ((warn_head == NULL) ||

Mime
View raw message