Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 40428 invoked from network); 27 Dec 2008 07:30:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Dec 2008 07:30:34 -0000 Received: (qmail 72086 invoked by uid 500); 27 Dec 2008 07:30:34 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 72037 invoked by uid 500); 27 Dec 2008 07:30:34 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 72028 invoked by uid 99); 27 Dec 2008 07:30:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Dec 2008 23:30:34 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Dec 2008 07:30:33 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id D103A23888CA; Fri, 26 Dec 2008 23:30:12 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r729613 - /httpd/mod_mbox/trunk/scripts/site-sitemap.py Date: Sat, 27 Dec 2008 07:30:12 -0000 To: cvs@httpd.apache.org From: pquerna@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20081227073012.D103A23888CA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 " %s%s/?format=sitemap" % (HOSTNAME, name) else: - part = int(size / PARITION_SIZE) + 1 + part = (size / PARITION_SIZE) + 1 for i in range(0, part): print " %s%s/?format=sitemap&pmax=%d&part=%d" % (HOSTNAME, name, part, i)