Fixed percentages shown in tooltip, thanks /Peter; related to Bug #2598
svn: r11617
This commit is contained in:
parent
48fb1c94f4
commit
68fed70200
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user