From: Steinar H. Gunderson Date: Wed, 30 May 2012 18:50:26 +0000 (+0200) Subject: Fix a reference to the variable in wrong scope. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=9bcc580be753615b99f23c1d952e2c8451e1a3d8;p=wloh Fix a reference to the variable in wrong scope. --- diff --git a/www/index.pl b/www/index.pl index e22a9a3..c26f128 100755 --- a/www/index.pl +++ b/www/index.pl @@ -309,7 +309,7 @@ sub find_avg_rating { for my $r (values %$ratings) { $sum_rating += ($r // 500.0); } - return $sum_rating / scalar keys %ratings; + return $sum_rating / scalar keys %$ratings; } sub get_auxillary_parameters {