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=cc4420f14d906ac6c15824c2621a39e3a473ff70;hb=9fb25b1c17181bf7d73ac5daa9585d8fd8974604;hpb=77d211a7035a1d418d03494d1410503458b50911 diff --git a/html/cgi-bin/logs.cgi/firewalllogip.dat b/html/cgi-bin/logs.cgi/firewalllogip.dat index cc4420f14d..5466988326 100644 --- a/html/cgi-bin/logs.cgi/firewalllogip.dat +++ b/html/cgi-bin/logs.cgi/firewalllogip.dat @@ -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'}