Permalink
Browse files

Calculate mod_tokens_lost_converted correctly.

  • Loading branch information...
1 parent f7720e0 commit 632cffa7a3db88fe34f6eed0288791f69feacf05 @jamiemccarthy jamiemccarthy committed Sep 25, 2002
Showing with 2 additions and 1 deletion.
  1. +2 −1 themes/slashcode/tasks/run_moderatord.pl
@@ -89,7 +89,8 @@ sub give_out_points {
$statsSave->addStatDaily("mod_points_gain_granted", $n_grantees);
# Reverse-engineer how many tokens that was.
my $tokperpt = $constants->{tokensperpoint} || 8;
- my $n_tokens = $n_grantees * $tokperpt;
+ my $maxpoints = $constants->{maxpoints} || 5;
+ my $n_tokens = $n_grantees * $tokperpt * $maxpoints;
$statsSave->addStatDaily("mod_tokens_lost_converted", $n_tokens);
}
}

0 comments on commit 632cffa

Please sign in to comment.