From 720ac379ca88dec24a3db244b4fbeb2c694a9599 Mon Sep 17 00:00:00 2001 From: "bryce-mozilla%nextbus.com" <> Date: Tue, 4 May 1999 07:01:57 +0000 Subject: Create a summary report for "-All-" bugs. Default links on. Switch sense of banner flag. Add commented-out line to enable showing SQL line. --- collectstats.pl | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'collectstats.pl') diff --git a/collectstats.pl b/collectstats.pl index e35c7aa23..dc8306715 100755 --- a/collectstats.pl +++ b/collectstats.pl @@ -31,7 +31,10 @@ require "globals.pl"; ConnectToDatabase(); GetVersionTable(); -foreach (@::legal_product) { +my @myproducts; +push( @myproducts, "-All-", @::legal_product ); + +foreach (@myproducts) { my $dir = "data/mining"; &check_data_dir ($dir); @@ -61,7 +64,11 @@ sub collect_stats { push my @row, &today; foreach my $status ('NEW', 'ASSIGNED', 'REOPENED') { - SendSQL("select count(bug_status) from bugs where bug_status='$status' and product='$product'"); + if( $product eq "-All-" ) { + SendSQL("select count(bug_status) from bugs where bug_status='$status'"); + } else { + SendSQL("select count(bug_status) from bugs where bug_status='$status' and product='$product'"); + } push @row, FetchOneColumn(); } -- cgit v1.2.3-24-g4f1b