]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - html/cgi-bin/logs.cgi/firewalllogport.dat
"Update Booster" fertiggestellt und getestet.
[people/pmueller/ipfire-2.x.git] / html / cgi-bin / logs.cgi / firewalllogport.dat
index 3727d2efab2430b4dff3a900a1c2a4e9fdb27d8b..07d697636a9a72c6f1139a4bc0f5ad3ad232bbee 100644 (file)
@@ -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 "<TR BGCOLOR='$colour1'>\n";}
   if ( ($colour % 10) == 2 ){print "<TR BGCOLOR='$colour2'>\n";}
@@ -490,7 +490,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{'otherport'}</TD>