@@ -, +, @@ --- circ/reserveratios.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/circ/reserveratios.pl +++ a/circ/reserveratios.pl @@ -157,7 +157,7 @@ $sth->execute(@query_params); my @reservedata; while ( my $data = $sth->fetchrow_hashref ) { my $thisratio = $data->{reservecount} / $data->{itemcount}; - my $ratiocalc = $data->{reservecount}/$ratio - $data->{itemcount}; + my $ratiocalc = ceil($data->{reservecount}/$ratio - $data->{itemcount}); $ratiocalc >= 0 or next; # TODO: tighter targeting -- get ratio limit into SQL using HAVING clause push( @reservedata, --