httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r729613 - /httpd/mod_mbox/trunk/scripts/site-sitemap.py
Date Sat, 27 Dec 2008 07:30:12 GMT
Author: pquerna
Date: Fri Dec 26 23:30:12 2008
New Revision: 729613

URL: http://svn.apache.org/viewvc?rev=729613&view=rev
Log:
Operators get me every time.

Modified:
    httpd/mod_mbox/trunk/scripts/site-sitemap.py

Modified: httpd/mod_mbox/trunk/scripts/site-sitemap.py
URL: http://svn.apache.org/viewvc/httpd/mod_mbox/trunk/scripts/site-sitemap.py?rev=729613&r1=729612&r2=729613&view=diff
==============================================================================
--- httpd/mod_mbox/trunk/scripts/site-sitemap.py (original)
+++ httpd/mod_mbox/trunk/scripts/site-sitemap.py Fri Dec 26 23:30:12 2008
@@ -53,10 +53,10 @@
     for list in klist:
         name = tlps[tlp][list][0]
         size = tlps[tlp][list][1]
-        if (size > PARITION_SIZE):
+        if size < PARITION_SIZE:
             print "   <sitemap><loc>%s%s/?format=sitemap</loc></sitemap>"
% (HOSTNAME, name)
         else:
-            part = int(size / PARITION_SIZE) + 1
+            part = (size / PARITION_SIZE) + 1
             for i in range(0, part):
                 print "   <sitemap><loc>%s%s/?format=sitemap&pmax=%d&part=%d</loc></sitemap>"
% (HOSTNAME, name, part, i)
 



Mime
View raw message