]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - html/cgi-bin/logs.cgi/firewalllogip.dat
Korrekturen im IDS System
[people/pmueller/ipfire-2.x.git] / html / cgi-bin / logs.cgi / firewalllogip.dat
index 6090472d9b82aaa2ce335753add6938533cb32d7..b3f5535191d480cf325281f74b246975fd1bc01a 100644 (file)
@@ -423,6 +423,7 @@ my $show=0;
 
 my $s;
 my $percent;
+
 for($s=0;$s<$lines;$s++)
 {
   $show++;
@@ -466,6 +467,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;
@@ -480,6 +483,7 @@ print <<END
 END
 ;
 }
+}
 print <<END
 </TABLE>
 END