summaryrefslogtreecommitdiff
path: root/lib/VNDB/Util
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-11-14 17:08:19 +0100
committerYorhel <git@yorhel.nl>2009-11-14 17:08:19 +0100
commit2394a77e8d503ebcf78109ced76680e46770b617 (patch)
treeb0056a46a15dfca043a271d47c81d4169f63f808 /lib/VNDB/Util
parented15643975e6e05ce5e8b9509901f769c86e06b4 (diff)
Added bayesian rating info to VN pages
This adds about 100ms (sometimes more) to the page generation time of VN pages... maybe I should cache the ratings after all.
Diffstat (limited to 'lib/VNDB/Util')
-rw-r--r--lib/VNDB/Util/CommonHTML.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/VNDB/Util/CommonHTML.pm b/lib/VNDB/Util/CommonHTML.pm
index ad99d32d..857cdcef 100644
--- a/lib/VNDB/Util/CommonHTML.pm
+++ b/lib/VNDB/Util/CommonHTML.pm
@@ -481,8 +481,9 @@ sub htmlVoteStats {
clearfloat;
if($type eq 'v') {
div;
- h3 mt '_votestats_pop_title';
- p mt '_votestats_pop_sum', $obj->{ranking}, $self->{stats}{vn}, sprintf('%0.2f',$obj->{c_popularity}*100);
+ h3 mt '_votestats_rank_title';
+ p mt '_votestats_rank_pop', $obj->{p_ranking}, sprintf '%.2f', $obj->{c_popularity}*100;
+ p mt '_votestats_rank_rat', $obj->{r_ranking}, sprintf '%.2f', $obj->{rating};
end;
}
end;