summaryrefslogtreecommitdiff
path: root/sphinx/web/application.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-08-06 17:04:12 +0000
committerGeorg Brandl <georg@python.org>2007-08-06 17:04:12 +0000
commit47a9ad555e797cd32ddd1d28d8542c746437248d (patch)
treefae174e6ea2472e91a11a439d529211940afa4b4 /sphinx/web/application.py
parent9fe28bd780cb9aafd34f1a36ee48a86422ecf875 (diff)
downloadsphinx-git-47a9ad555e797cd32ddd1d28d8542c746437248d.tar.gz
Fix module index cloud size calculation.
Diffstat (limited to 'sphinx/web/application.py')
-rw-r--r--sphinx/web/application.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/web/application.py b/sphinx/web/application.py
index 44ad7bab9..666b14d76 100644
--- a/sphinx/web/application.py
+++ b/sphinx/web/application.py
@@ -340,7 +340,7 @@ class DocumentationApplication(object):
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,