]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
all products get stats collected now, not just a hardcoded list.
authorharrison%netscape.com <>
Tue, 27 Oct 1998 18:43:24 +0000 (18:43 +0000)
committerharrison%netscape.com <>
Tue, 27 Oct 1998 18:43:24 +0000 (18:43 +0000)
collectstats.pl

index e053155ebaa22a153f2194ba7491463a764d2d31..a40de3cf70954ff4dfa10fe4add8260e3befd213 100755 (executable)
 
 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;
   }