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);
{
$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";}
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>