summaryrefslogtreecommitdiffstats
path: root/collectstats.pl
diff options
context:
space:
mode:
authorbryce-mozilla%nextbus.com <>1999-05-04 09:01:57 +0200
committerbryce-mozilla%nextbus.com <>1999-05-04 09:01:57 +0200
commit720ac379ca88dec24a3db244b4fbeb2c694a9599 (patch)
treee4697f5824008dcca99bd61a2349b3a07f6ca3d4 /collectstats.pl
parentf5b07da07ed7f03b79c38c59b5c843eace440c6b (diff)
downloadbugzilla-720ac379ca88dec24a3db244b4fbeb2c694a9599.tar.gz
bugzilla-720ac379ca88dec24a3db244b4fbeb2c694a9599.tar.xz
Create a summary report for "-All-" bugs. Default links on. Switch sense of
banner flag. Add commented-out line to enable showing SQL line.
Diffstat (limited to 'collectstats.pl')
-rwxr-xr-xcollectstats.pl11
1 files changed, 9 insertions, 2 deletions
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();
}