Commits

Anonymous committed 7c97411

Fix module index cloud size calculation.

Comments (0)

Files changed (1)

sphinx/web/application.py

         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,