[Python-checkins] r56774 - doctools/trunk/sphinx/web/application.py

georg.brandl python-checkins at python.org
Mon Aug 6 19:04:14 CEST 2007


Author: georg.brandl
Date: Mon Aug  6 19:04:12 2007
New Revision: 56774

Modified:
   doctools/trunk/sphinx/web/application.py
Log:
Fix module index cloud size calculation.


Modified: doctools/trunk/sphinx/web/application.py
==============================================================================
--- doctools/trunk/sphinx/web/application.py	(original)
+++ doctools/trunk/sphinx/web/application.py	Mon Aug  6 19:04:12 2007
@@ -340,7 +340,7 @@
         most_frequent = heapq.nlargest(30, self.freqmodules.iteritems(),
                                        lambda x: x[1])
         if most_frequent:
-            base_count = most_frequent[0][1]
+            base_count = most_frequent[-1][1]
             most_frequent = [{
                 'name':         x[0],
                 'size':         100 + math.log((x[1] - base_count) + 1) * 20,


More information about the Python-checkins mailing list