Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bin/parse_logs
diff options
context:
space:
mode:
authormorgamic@mozilla.com <morgamic@mozilla.com@4eb1ac78-321c-0410-a911-ec516a8615a5>2008-10-15 21:01:57 (GMT)
committer morgamic@mozilla.com <morgamic@mozilla.com@4eb1ac78-321c-0410-a911-ec516a8615a5>2008-10-15 21:01:57 (GMT)
commit2ea0b0a3a773bdeb7c0b49d17eb24bdcaabf22e1 (patch)
treed30746100a5d050c177359177fb347d15dab7b8a /bin/parse_logs
parent78dbf4691485f0f3acf121165411eda8595ecd2c (diff)
Adding garbage collection to stats script, bug 456687, r=fligtar.
git-svn-id: http://svn.mozilla.org/addons/trunk@19145 4eb1ac78-321c-0410-a911-ec516a8615a5
Diffstat (limited to 'bin/parse_logs')
-rw-r--r--bin/parse_logs/count_downloads.class.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/parse_logs/count_downloads.class.php b/bin/parse_logs/count_downloads.class.php
index b459167..4eb0989 100644
--- a/bin/parse_logs/count_downloads.class.php
+++ b/bin/parse_logs/count_downloads.class.php
@@ -134,6 +134,11 @@ class Count_Downloads {
ON DUPLICATE KEY UPDATE count=count+{$ct}", true);
}
}
+
+ // Garbage collection on counts array after the log file is parsed and
+ // database is updated.
+ $this->counts['totdown'] = array();
+ $this->counts['perday'] = array();
}
}