From 46ecce78c130dee499694b7188de2e7e33e5ab7a Mon Sep 17 00:00:00 2001 From: "harrison%netscape.com" Date: Tue, 27 Oct 1998 10:43:24 +0000 Subject: [PATCH] all products get stats collected now, not just a hardcoded list. --- webtools/bugzilla/collectstats.pl | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/webtools/bugzilla/collectstats.pl b/webtools/bugzilla/collectstats.pl index e053155ebaa..a40de3cf709 100755 --- a/webtools/bugzilla/collectstats.pl +++ b/webtools/bugzilla/collectstats.pl @@ -24,14 +24,14 @@ use diagnostics; use strict; +use vars @::legal_product; require "globals.pl"; ConnectToDatabase(); +GetVersionTable(); -my @products = qw (Mozilla NGLayout); - -foreach (@products) +foreach (@::legal_product) { my $dir = "data/mining"; &check_data_dir ($dir); @@ -101,7 +101,6 @@ FIN sub today { my ($dom, $mon, $year) = (localtime(time))[3, 4, 5]; - if ($year > 99) { $year += 2000; } else { $year += 1900; } - return sprintf "%04d%02d%02d", $year, ++$mon, $dom; + return sprintf "%04d%02d%02d", 1900 + $year, ++$mon, $dom; }