Fixed percentages shown in tooltip, thanks /Peter; related to Bug #2598

svn: r11617
This commit is contained in:
Doug Blank 2009-01-13 11:57:36 +00:00
parent 48fb1c94f4
commit 68fed70200
2 changed files with 2 additions and 2 deletions

View File

@ -370,7 +370,7 @@ class SurnameCloudGramplet(Gramplet):
size = make_tag_size(count, counts)
self.link(text, 'Surname', representative_handle[surname], size,
"%s, %d%% (%d)" % (text,
int((float(count)/total) * 100),
int((float(count)/total_surnames) * 100),
count))
self.append_text(" ")
showing += 1

View File

@ -121,7 +121,7 @@ class GivenNameCloudGramplet(Gramplet):
size = make_tag_size(count, counts)
self.link(text, 'Given', text, size,
"%s, %d%% (%d)" % (text,
int((float(count)/total) * 100),
int((float(count)/total_givensubnames) * 100),
count))
self.append_text(" ")
showing += 1