r25671 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25670‎ | r25671 | r25672 >
Date:19:44, 8 September 2007
Author:brion
Status:old
Tags:
Comment:
udp2log log lines have one more field than what i was working with in testing... o_O
Modified paths:
  • /trunk/tools/counter/counter.py (modified) (history)

Diff [purge]

Index: trunk/tools/counter/counter.py
@@ -33,9 +33,9 @@
3434 # $hostname %sn %ts.%03tu %tr %>a %Ss/%03Hs %<st %rm %ru %Sh/%<A %mt %{Referer}>h %{X-Forwarded-For}>h %{User-Agent}>h
3535 # ...
3636 # 9. URL
37 - bits = line.split(" ", 9)
38 - if len(bits) > 8 and bits[7] == "GET":
39 - return bits[8]
 37+ bits = line.split(" ", 10)
 38+ if len(bits) > 9 and bits[8] == "GET":
 39+ return bits[9]
4040 else:
4141 return None
4242

Status & tagging log