Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Calculate mod_tokens_lost_converted correctly.

  • Loading branch information...
commit 632cffa7a3db88fe34f6eed0288791f69feacf05 1 parent f7720e0
Jamie McCarthy authored September 25, 2002
3  themes/slashcode/tasks/run_moderatord.pl
@@ -89,7 +89,8 @@ sub give_out_points {
89 89
 			$statsSave->addStatDaily("mod_points_gain_granted", $n_grantees);
90 90
 			# Reverse-engineer how many tokens that was.
91 91
 			my $tokperpt = $constants->{tokensperpoint} || 8;
92  
-			my $n_tokens = $n_grantees * $tokperpt;
  92
+			my $maxpoints = $constants->{maxpoints} || 5;
  93
+			my $n_tokens = $n_grantees * $tokperpt * $maxpoints;
93 94
 			$statsSave->addStatDaily("mod_tokens_lost_converted", $n_tokens);
94 95
 		}
95 96
 	}

0 notes on commit 632cffa

Please sign in to comment.
Something went wrong with that request. Please try again.