]> git.sesse.net Git - wloh/commitdiff
Fix a reference to the variable in wrong scope.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 30 May 2012 18:50:26 +0000 (20:50 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 30 May 2012 18:50:26 +0000 (20:50 +0200)
www/index.pl

index e22a9a359e7b3b4e5de2bbe3188132a3858e61bd..c26f12892168ef5702e47404d1e0dde34df32667 100755 (executable)
@@ -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 {