privoxy-log-parser.pl: Align the client-HTTP-version distribution like other distribu...
authorFabian Keil <fk@fabiankeil.de>
Sat, 30 May 2020 04:36:15 +0000 (06:36 +0200)
committerFabian Keil <fk@fabiankeil.de>
Mon, 1 Jun 2020 08:11:46 +0000 (10:11 +0200)
tools/privoxy-log-parser.pl

index dcb9d35..5a1ebca 100755 (executable)
@@ -2237,7 +2237,7 @@ sub print_stats () {
     }
     print "Client HTTP versions:\n";
     foreach my $http_version (sort {$stats{'http-version'}{$b} <=> $stats{'http-version'}{$a}} keys %{$stats{'http-version'}}) {
     }
     print "Client HTTP versions:\n";
     foreach my $http_version (sort {$stats{'http-version'}{$b} <=> $stats{'http-version'}{$a}} keys %{$stats{'http-version'}}) {
-        printf "%d : %s\n",  $stats{'http-version'}{$http_version}, $http_version;
+        printf "%8d : %-8s\n",  $stats{'http-version'}{$http_version}, $http_version;
     }
     if (exists $stats{'status-code'}) {
         print "HTTP status codes:\n";
     }
     if (exists $stats{'status-code'}) {
         print "HTTP status codes:\n";