diff options
author | lpsolit%gmail.com <> | 2007-03-12 22:01:16 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2007-03-12 22:01:16 +0000 |
commit | f610c82d41af13e573535b1aa6a3566d729e6036 (patch) | |
tree | bfac38704b09cb84ecec17351e5f4fe738aa9a11 | |
parent | e15776a6d748b615a60596f5f065db0a380550cb (diff) | |
download | bugs-f610c82d41af13e573535b1aa6a3566d729e6036.tar bugs-f610c82d41af13e573535b1aa6a3566d729e6036.tar.gz bugs-f610c82d41af13e573535b1aa6a3566d729e6036.tar.bz2 bugs-f610c82d41af13e573535b1aa6a3566d729e6036.tar.xz bugs-f610c82d41af13e573535b1aa6a3566d729e6036.zip |
Bug 373492: Data in data/mining/* is corrupted - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat r=gerv a=mkanat
-rwxr-xr-x | collectstats.pl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/collectstats.pl b/collectstats.pl index 3b6344b37..7bc2b6174 100755 --- a/collectstats.pl +++ b/collectstats.pl @@ -264,8 +264,11 @@ sub get_old_data { $recreate = 1; my @new_cols = ($columns[0], @statuses, @resolutions); if (scalar(@columns) == scalar(@new_cols)) { - my ($removed, $added) = diff_arrays(\@columns, \@new_cols); - last if (!scalar(@$removed) && !scalar(@$added)); + my $identical = 1; + for (0 .. $#columns) { + $identical = 0 if ($columns[$_] ne $new_cols[$_]); + } + last if $identical; } } next unless $recreate; |