X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=blobdiff_plain;f=html%2Fcgi-bin%2Flogs.cgi%2Ffirewalllogip.dat;h=5466988326170603c2c3a328c8bbe1deef20113a;hp=e121657537f8f4fdecb2d0bb983b44081c616b87;hb=9fb25b1c17181bf7d73ac5daa9585d8fd8974604;hpb=6bc302d11872a22e4e39dda0932beafee6450bae diff --git a/html/cgi-bin/logs.cgi/firewalllogip.dat b/html/cgi-bin/logs.cgi/firewalllogip.dat index e121657537..5466988326 100644 --- a/html/cgi-bin/logs.cgi/firewalllogip.dat +++ b/html/cgi-bin/logs.cgi/firewalllogip.dat @@ -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 "\n";} if ( ($colour % 10) == 2 ){print "\n";} @@ -496,7 +496,7 @@ if ( ($colour % 10) == 0 ){print "\n";} my $dif; $dif = $linesjc - $total; $percent = $dif * 100 / $linesjc; -$percent = sprintf("%.3f", $percent); +$percent = sprintf("%.f", $percent); print < $Lang::tr{'otherip'}