Skip to content

Commit

Permalink
Set 0 to negative number
Browse files Browse the repository at this point in the history
  • Loading branch information
oiami committed Feb 14, 2015
1 parent 74cddaf commit 7399aaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MetaCPAN/Web/Model/API/Favorite.pm
Expand Up @@ -136,7 +136,7 @@ sub find_plussers {

# find total non pauseid users who have ++ed the dist.
my $total_nonauthors = ( $total_plussers - $total_authors );
$total_authors = 0 if $total_authors < 0;
$total_nonauthors = 0 if $total_nonauthors < 0;

return (
{
Expand Down

0 comments on commit 7399aaf

Please sign in to comment.