From: Fabian Keil <fk@fabiankeil.de>
Date: Sat, 30 May 2020 05:55:44 +0000 (+0200)
Subject: privoxy-log-parser.pl: Warn if the request counts differ
X-Git-Tag: v_3_0_29~341
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/static/gitweb.js?a=commitdiff_plain;h=44e17dd7246c755ee40949ae4dee6f334c3dd7e3;p=privoxy.git

privoxy-log-parser.pl: Warn if the request counts differ
---

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};
     }