aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcollectstats.pl8
1 files changed, 5 insertions, 3 deletions
diff --git a/collectstats.pl b/collectstats.pl
index 4789440dd..12bf9fce4 100755
--- a/collectstats.pl
+++ b/collectstats.pl
@@ -57,9 +57,11 @@ sub collect_stats {
my $product = shift;
my $when = localtime (time);
-
- $product =~ s/\//-/gs;
- my $file = join '/', $dir, $product;
+ # NB: Need to mangle the product for the filename, but use the real
+ # product name in the query
+ my $file_product = $product;
+ $file_product =~ s/\//-/gs;
+ my $file = join '/', $dir, $file_product;
my $exists = -f $file;
if (open DATA, ">>$file") {