Author: poeml Date: Wed Nov 25 19:50:16 2009 New Revision: 38 URL: http://svn.mirrorbrain.org/viewvc/mod_stats?rev=38&view=rev Log: cleanups Modified: trunk/tools/dlcount.py Modified: trunk/tools/dlcount.py URL: http://svn.mirrorbrain.org/viewvc/mod_stats/trunk/tools/dlcount.py?rev=38&r1=37&r2=38&view=diff ============================================================================== --- trunk/tools/dlcount.py (original) +++ trunk/tools/dlcount.py Wed Nov 25 19:50:16 2009 _at_@ -222,10 +222,6 @@ else: sys.exit('unparsed directive (implementation needed)', directive) - - #for i, item in enumerate(conf['statsprefilter']): - - return conf _at_@ -254,9 +250,6 @@ # 200 is returned for files that are not on mirrors, and for metalinks pat = r'^(\S+).+"GET (\S*) HTTP.*" (200|302) [^"]+ "([^"]*)" "([^"]*)".* \w\w:(\w\w) ASN:' reqs = gen_fragments(pat, loglines) - - # pretreatment (filtering, fixups), applied in order - # FIXME: read prefilter expressions here for req in reqs: _at_@ -275,16 +268,14 @@ #print 'ignoring req %s because it matches %s' %(url, mreg) skip = True break - if skip: - continue + if skip: continue for i in conf['statsignoreip']: if ip.startswith(i): #print 'ignoring ip %s because it matches %s' %(ip, i) skip = True break - if skip: - continue + if skip: continue # was the requests seen recently? If yes, ignore it. # otherwise, put it into the ring buffer. _______________________________________________ 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.orgReceived on Wed Nov 25 2009 - 18:50:19 GMT
This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT