From 5beef120ee91d8d1752cfd7fb8bbd5de5516a95b Mon Sep 17 00:00:00 2001 From: Darold Gilles Date: Mon, 10 Dec 2012 17:22:46 +0100 Subject: [PATCH] Fix sorttalbe with missing tbody tag. Thanks to Nathanael Bonin for the patch. --- SquidAnalyzer.pm | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/SquidAnalyzer.pm b/SquidAnalyzer.pm index 3fc0109..d9dab78 100644 --- a/SquidAnalyzer.pm +++ b/SquidAnalyzer.pm @@ -1518,6 +1518,7 @@ sub _print_mime_stat print $out qq{ + }; foreach (sort { $mime_stat{$b}{"$self->{OrderMime}"} <=> $mime_stat{$a}{"$self->{OrderMime}"} } keys %mime_stat) { my $c_percent = '0.0'; @@ -1541,6 +1542,7 @@ sub _print_mime_stat }; } print $out qq{ + }; @@ -1705,6 +1707,7 @@ sub _print_network_stat $Translate{'Url'} + }; if (!-d "$outdir/networks") { mkdir("$outdir/networks", 0755) || return; @@ -1807,7 +1810,7 @@ sub _print_network_stat $self->_print_footer(\$outnet); $outnet->close(); } - print $out "\n"; + print $out "\n"; print $out qq{