From 44e17dd7246c755ee40949ae4dee6f334c3dd7e3 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sat, 30 May 2020 07:55:44 +0200 Subject: [PATCH] privoxy-log-parser.pl: Warn if the request counts differ --- tools/privoxy-log-parser.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl index 5307a49c..9af2108c 100755 --- a/tools/privoxy-log-parser.pl +++ b/tools/privoxy-log-parser.pl @@ -2169,6 +2169,10 @@ sub print_stats() { my $outgoing_requests = $stats{requests} - $stats{crunches}; my $client_requests_checksum = 0; + if ($stats{requests_clf} && $stats{requests} + && $stats{requests_clf} != $stats{requests}) { + print "Inconsistent request counts: " . $stats{requests} . "/" . $stats{requests_clf} . "\n"; + } if ($stats{requests_clf} && $stats{requests} eq 0) { $stats{requests} = $stats{requests_clf}; } -- 2.39.2