1. WAKAYAMA shirou
  2. sphinx

Commits

georg.brandl  committed 7c97411

Fix module index cloud size calculation.

  • Participants
  • Parent commits 5c1aabd
  • Branches default

Comments (0)

Files changed (1)

File sphinx/web/application.py

View file
         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,