r109946 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r109945‎ | r109946 | r109947 >
Date:20:19, 24 January 2012
Author:diederik
Status:ok
Tags:
Comment:
External awk filters that are running on Locke. Documentation is lacking.
Modified paths:
  • /trunk/udplog/filters/minnesota.awk (added) (history)
  • /trunk/udplog/filters/urjc.awk (added) (history)
  • /trunk/udplog/filters/vu.awk (added) (history)

Diff [purge]

Index: trunk/udplog/filters/urjc.awk
@@ -0,0 +1,9 @@
 2+function savemark(url, code) {
 3+ if (url ~ /action=submit$/ && code == "TCP_MISS/302")
 4+ return "save"
 5+ return "-"
 6+}
 7+
 8+$5 !~ /^(145\.97\.39\.|66\.230\.200\.|211\.115\.107\.)/ {
 9+ print $3, $9, savemark($9, $6), $4, $8
 10+}
Index: trunk/udplog/filters/vu.awk
@@ -0,0 +1,9 @@
 2+function savemark(url, code) {
 3+ if (url ~ /action=submit$/ && code == "TCP_MISS/302")
 4+ return "save"
 5+ return "-"
 6+}
 7+
 8+$5 !~ /^(145\.97\.39\.|66\.230\.200\.|211\.115\.107\.)/ {
 9+ print $3, $9, savemark($9, $6)
 10+}
Index: trunk/udplog/filters/minnesota.awk
@@ -0,0 +1 @@
 2+$5 !~ /^(145\.97\.39\.|66\.230\.200\.|211\.115\.107\.)/ {print $3, $9}

Status & tagging log