From: terry%netscape.com <> Date: Sat, 6 Mar 1999 03:48:26 +0000 (+0000) Subject: Reformated all the code to match the rest of Bugzilla. X-Git-Tag: bugzilla-2.4~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c011d1dc335571a1b07c64a7f3af1d97c67e2c11;p=thirdparty%2Fbugzilla.git Reformated all the code to match the rest of Bugzilla. --- diff --git a/collectstats.pl b/collectstats.pl index 05e6204cb3..6c51d1afc4 100755 --- a/collectstats.pl +++ b/collectstats.pl @@ -31,55 +31,47 @@ require "globals.pl"; ConnectToDatabase(); GetVersionTable(); -foreach (@::legal_product) - { - my $dir = "data/mining"; +foreach (@::legal_product) { + my $dir = "data/mining"; - &check_data_dir ($dir); - &collect_stats ($dir, $_); - } + &check_data_dir ($dir); + &collect_stats ($dir, $_); +} -sub check_data_dir - { - my $dir = shift; +sub check_data_dir { + my $dir = shift; - if (! -d) - { - mkdir $dir, 0777; - chmod 0777, $dir; - } - } + if (! -d) { + mkdir $dir, 0777; + chmod 0777, $dir; + } +} -sub collect_stats - { - my $dir = shift; - my $product = shift; - my $when = localtime (time); +sub collect_stats { + my $dir = shift; + my $product = shift; + my $when = localtime (time); - my $query = <>$file") - { - SendSQL ($query); - - my %count; - push my @row, &today; - - while (my @n = FetchSQLData()) - { - push @row, @n; - } - - if (! $exists) - { - print DATA <>$file") { + SendSQL ($query); + + my %count; + push my @row, &today; + + while (my @n = FetchSQLData()) + { + push @row, @n; + } + + if (! $exists) + { + print DATA <