httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r290118 - /httpd/httpd/branches/2.2.x/support/htcacheclean.c
Date Mon, 19 Sep 2005 11:39:16 GMT
Author: colm
Date: Mon Sep 19 04:39:13 2005
New Revision: 290118

URL: http://svn.apache.org/viewcvs?rev=290118&view=rev
Log:

Backport support for gigabytes in htcacheclean to the 2.2.x branch


Modified:
    httpd/httpd/branches/2.2.x/support/htcacheclean.c

Modified: httpd/httpd/branches/2.2.x/support/htcacheclean.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/2.2.x/support/htcacheclean.c?rev=290118&r1=290117&r2=290118&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/support/htcacheclean.c (original)
+++ httpd/httpd/branches/2.2.x/support/htcacheclean.c Mon Sep 19 04:39:13 2005
@@ -111,6 +111,7 @@
 #define SECS_PER_MIN  60
 #define KBYTE         1024
 #define MBYTE         1048576
+#define GBYTE         1073741824
 
 #define DIRINFO (APR_FINFO_MTIME|APR_FINFO_SIZE|APR_FINFO_TYPE|APR_FINFO_LINK)
 
@@ -921,6 +922,9 @@
                         }
                         else if ((*end == 'M' || *end == 'm') && !end[1]) {
                             max *= MBYTE;
+                        }
+                        else if ((*end == 'G' || *end == 'g') && !end[1]) {
+                            max *= GBYTE;
                         }
                         else if (*end &&        /* neither empty nor [Bb] */
                                  ((*end != 'B' && *end != 'b') || end[1])) {



Mime
View raw message