diff options
author | Georg Brandl <georg@python.org> | 2007-08-06 17:04:12 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-08-06 17:04:12 +0000 |
commit | 47a9ad555e797cd32ddd1d28d8542c746437248d (patch) | |
tree | fae174e6ea2472e91a11a439d529211940afa4b4 /sphinx/web/application.py | |
parent | 9fe28bd780cb9aafd34f1a36ee48a86422ecf875 (diff) | |
download | sphinx-git-47a9ad555e797cd32ddd1d28d8542c746437248d.tar.gz |
Fix module index cloud size calculation.
Diffstat (limited to 'sphinx/web/application.py')
-rw-r--r-- | sphinx/web/application.py | 2 |
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, |