X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=html%2Fcgi-bin%2Flogs.cgi%2Ffirewalllogport.dat;fp=html%2Fcgi-bin%2Flogs.cgi%2Ffirewalllogport.dat;h=07d697636a9a72c6f1139a4bc0f5ad3ad232bbee;hb=9fb25b1c17181bf7d73ac5daa9585d8fd8974604;hp=3727d2efab2430b4dff3a900a1c2a4e9fdb27d8b;hpb=77d211a7035a1d418d03494d1410503458b50911;p=people%2Fteissler%2Fipfire-2.x.git diff --git a/html/cgi-bin/logs.cgi/firewalllogport.dat b/html/cgi-bin/logs.cgi/firewalllogport.dat index 3727d2efa..07d697636 100644 --- a/html/cgi-bin/logs.cgi/firewalllogport.dat +++ b/html/cgi-bin/logs.cgi/firewalllogport.dat @@ -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 "\n";} if ( ($colour % 10) == 2 ){print "\n";} @@ -490,7 +490,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{'otherport'}