]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - html/cgi-bin/logs.cgi/firewalllogport.dat
OpenVPN converter: Fix coding style and verbose output.
[people/teissler/ipfire-2.x.git] / html / cgi-bin / logs.cgi / firewalllogport.dat
index 3ecc26b2148a22507b74d56c8fcb09a9e482417f..af9b852884161dd080e68e2250427a89f6053314 100644 (file)
@@ -13,8 +13,8 @@
 use strict;
 
 # enable only the following on debugging purpose
-use warnings;
-use CGI::Carp 'fatalsToBrowser';
+#use warnings;
+#use CGI::Carp 'fatalsToBrowser';
 
 require '/var/ipfire/general-functions.pl';
 require "${General::swroot}/lang.pl";
@@ -459,6 +459,8 @@ if ( ($color % 10) == 8 ){print "<TR BGCOLOR='$color{'color8'}'>\n";}
 if ( ($color % 10) == 9 ){print "<TR BGCOLOR='$color{'color9'}'>\n";}
 if ( ($color % 10) == 0 ){print "<TR BGCOLOR='$color{'color10'}'>\n";}
 
+if ( $linesjc ne "0")
+{
 my $dif;
 $dif = $linesjc - $total;
 $percent = $dif * 100 / $linesjc;
@@ -472,6 +474,7 @@ print <<END
 END
 ;
 }
+}
 print <<END
 </TABLE>
 END