r26325 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r26324‎ | r26325 | r26326 >
Date:21:43, 2 October 2007
Author:gmaxwell
Status:old
Tags:
Comment:
Brion says that the squid log docs don't exactly match the log format.
Modified paths:
  • /trunk/tools/counter/counter.py (modified) (history)

Diff [purge]

Index: trunk/tools/counter/counter.py
@@ -62,8 +62,8 @@
6363 # ...
6464 # 9. URL
6565 bits = line.split(" ", 10)
66 - if len(bits) > 8 and bits[7] == "GET":
67 - return (bits[8],int(round(float(bits[2]))))
 66+ if len(bits) > 9 and bits[8] == "GET":
 67+ return (bits[9],int(round(float(bits[3]))))
6868 else:
6969 return None
7070

Status & tagging log