diff --git a/mozilla/webtools/litmus/stats.cgi b/mozilla/webtools/litmus/stats.cgi index d9b1da96041..ffc75b53ff9 100755 --- a/mozilla/webtools/litmus/stats.cgi +++ b/mozilla/webtools/litmus/stats.cgi @@ -39,6 +39,9 @@ my $numtests = Litmus::DB::Test->count_all(); # find the number of users in the database my $numusers = Litmus::DB::User->count_all(); +# find the number of results in the database: +my $numresults = Litmus::DB::Testresult->count_all(); + # get a list of the top 15 testers of all time, sorted by the number # of test results submitted: my $dbh = Litmus::DB::User->db_Main(); @@ -63,6 +66,7 @@ while (@curtester = $sth->fetchrow_array()) { my $vars = { numtests => $numtests, numusers => $numusers, + numresults => $numresults, toptesters => \@toptesters, }; diff --git a/mozilla/webtools/litmus/templates/en/default/stats/stats.html.tmpl b/mozilla/webtools/litmus/templates/en/default/stats/stats.html.tmpl index c55e58298c5..09663cfadf4 100755 --- a/mozilla/webtools/litmus/templates/en/default/stats/stats.html.tmpl +++ b/mozilla/webtools/litmus/templates/en/default/stats/stats.html.tmpl @@ -21,6 +21,7 @@ [%# INTERFACE: # $numtests - the number of tests in the database # $numusers - the number of users in the database + # $numresults - the number of results in the database # @toptesters - an array of the top testers in the system, where each # element contains a hash with keys "email" and "numtests" #%] @@ -34,6 +35,7 @@
Tester Statistics