]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - html/cgi-bin/logs.cgi/firewalllogip.dat
"Update Booster" fertiggestellt und getestet.
[people/pmueller/ipfire-2.x.git] / html / cgi-bin / logs.cgi / firewalllogip.dat
index e121657537f8f4fdecb2d0bb983b44081c616b87..5466988326170603c2c3a328c8bbe1deef20113a 100644 (file)
@@ -374,7 +374,7 @@ else{
 
 my @data = (\@ips,\@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);
@@ -454,7 +454,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";}
@@ -496,7 +496,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{'otherip'}</TD>