diff options
author | Yorhel <git@yorhel.nl> | 2012-01-10 15:44:32 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2012-01-10 15:44:32 +0100 |
commit | 7f48af30ed456688391e46b1a577c5907cdd7be7 (patch) | |
tree | 468dde27c392eab5af23e05e87f452a622c6316e /lib/VNDB/Util/BrowseHTML.pm | |
parent | 3ea8eef12df3e84645b59301211cd233b6c27a2d (diff) |
Allow one fractional digit for VN votes
The interface to set a non-integer vote isn't very nice, but at least it
works. Or so I hope.
Diffstat (limited to 'lib/VNDB/Util/BrowseHTML.pm')
-rw-r--r-- | lib/VNDB/Util/BrowseHTML.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Util/BrowseHTML.pm b/lib/VNDB/Util/BrowseHTML.pm index 6d6cdeda..993f8746 100644 --- a/lib/VNDB/Util/BrowseHTML.pm +++ b/lib/VNDB/Util/BrowseHTML.pm @@ -202,7 +202,7 @@ sub htmlBrowseVN { end; td class => 'tc5', sprintf '%.2f', ($l->{c_popularity}||0)*100; td class => 'tc6'; - txt sprintf '%.2f', $l->{c_rating}||0; + txt sprintf '%.2f', ($l->{c_rating}||0)/10; b class => 'grayedout', sprintf ' (%d)', $l->{c_votecount}; end; end 'tr'; |