]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - html/cgi-bin/logs.cgi/firewalllogport.dat
"Update Booster" fertiggestellt und getestet.
[people/pmueller/ipfire-2.x.git] / html / cgi-bin / logs.cgi / firewalllogport.dat
index a96e47d8984f5dc203c7b87ead0500f5163f1ba3..07d697636a9a72c6f1139a4bc0f5ad3ad232bbee 100644 (file)
@@ -374,7 +374,7 @@ else{
 
 my @data = (\@ports,\@numb);
 use GD::Graph::colour qw( :files );
-GD::Graph::colour::read_rgb( "/srv/web/ipfire/html/themes/ipfie/include/colours.txt" );
+GD::Graph::colour::read_rgb( "/srv/web/ipfire/html/themes/ipfire/include/colours.txt" );
 
 if ($showpie != 2 && $pienumber <= 50 && $pienumber != 0) {
         my $mygraph = GD::Graph::pie->new(500, 350);
@@ -453,7 +453,7 @@ for($s=0;$s<$lines;$s++)
 {
   $show++;
   $percent = $value[$s] * 100 / $linesjc;
-  $percent = sprintf("%.3f", $percent);
+  $percent = sprintf("%.f", $percent);
   $total = $total + $value[$s];
   if ( ($colour % 10) == 1 ){print "<TR BGCOLOR='$colour1'>\n";}
   if ( ($colour % 10) == 2 ){print "<TR BGCOLOR='$colour2'>\n";}
@@ -490,7 +490,7 @@ if ( ($colour % 10) == 0 ){print "<TR BGCOLOR='$colour10'>\n";}
 my $dif;
 $dif = $linesjc - $total;
 $percent = $dif * 100 / $linesjc;
-$percent = sprintf("%.3f", $percent);
+$percent = sprintf("%.f", $percent);
 print <<END
 <TD ALIGN='CENTER'></TD>
 <TD ALIGN='CENTER'>$Lang::tr{'otherport'}</TD>