From: <no...@so...> - 2010-10-23 08:01:44
|
Update of /cvsroot/ijbswa/current/tools In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv24548/tools Modified Files: privoxy-log-parser.pl Log Message: Also gather statistics for fast redirections. Index: privoxy-log-parser.pl =================================================================== RCS file: /cvsroot/ijbswa/current/tools/privoxy-log-parser.pl,v retrieving revision 1.94 retrieving revision 1.95 diff -u -d -r1.94 -r1.95 --- privoxy-log-parser.pl 16 Oct 2010 13:32:32 -0000 1.94 +++ privoxy-log-parser.pl 23 Oct 2010 08:01:36 -0000 1.95 @@ -1861,6 +1861,11 @@ $stats{requests}++; $stats{crunches}++; + + if ($c =~ m/^Redirected:/) { + # Redirected: http://www.example.org/http://p.p/ + $stats{'fast-redirections'}++; + } } @@ -1972,6 +1977,8 @@ print "Client requests total: " . $stats{requests} . "\n"; print "Crunches: " . $stats{crunches} . " (" . get_percentage($stats{requests}, $stats{crunches}) . ")\n"; + print "Fast redirections: " . $stats{'fast-redirections'} . " (" . + get_percentage($stats{requests}, $stats{'fast-redirections'}) . ")\n"; print "Outgoing requests: " . $outgoing_requests . " (" . get_percentage($stats{requests}, $outgoing_requests) . ")\n"; print "Server keep-alive offers: " . $stats{'server-keep-alive'} . " (" . |