[mirrorbrain-commits] [mod_stats] r71 - in /trunk/tools: dlcount.py xbmc.conf

From: <poeml_at_mirrorbrain.org>
Date: Sun, 03 Oct 2010 23:29:43 -0000
Author: poeml
Date: Mon Oct  4 01:29:41 2010
New Revision: 71

URL: http://svn.mirrorbrain.org/viewvc/mod_stats?rev=71&view=rev
Log:
xbmc config: a StatsPostfilter is needed (as with OOo), to remove keywords from the parse result.

Modified:
    trunk/tools/dlcount.py
    trunk/tools/xbmc.conf

Modified: trunk/tools/dlcount.py
URL: http://svn.mirrorbrain.org/viewvc/mod_stats/trunk/tools/dlcount.py?rev=71&r1=70&r2=71&view=diff
==============================================================================
--- trunk/tools/dlcount.py (original)
+++ trunk/tools/dlcount.py Mon Oct  4 01:29:41 2010
_at_@ -117,6 +117,9 @@
         m = pat.match(line)
         if m:
             yield m.groups()
+        #else:
+        #    print 'no match for:'
+        #    print line
 
 
 class RingBuffer:

Modified: trunk/tools/xbmc.conf
URL: http://svn.mirrorbrain.org/viewvc/mod_stats/trunk/tools/xbmc.conf?rev=71&r1=70&r2=71&view=diff
==============================================================================
--- trunk/tools/xbmc.conf (original)
+++ trunk/tools/xbmc.conf Mon Oct  4 01:29:41 2010
_at_@ -15,4 +15,9 @@
 StatsCount "^/addons/([^/]+)/([^/]+)/\2-([0-9.]+)\.zip$" "prod: \2  os: \1  version: \3  lang: --"
 
 
+StatsPostfilter "(prod|os|version|lang): " ""
+# FIXME: we didn't need to add those words in the first place; not needed at all.
+# they were just useful for orientation.
+
+
 # vim: ft=apache ai ts=4 sw=4 smarttab expandtab smarttab




_______________________________________________
mirrorbrain-commits mailing list
Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/

Note: To remove yourself from this list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on Sun Oct 03 2010 - 23:29:48 GMT

This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT