You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Tsuyoshi SASAMOTO <na...@super.win.ne.jp> on 2005/04/11 04:20:13 UTC
[patch] cache_util.c
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) ||