db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fuzzylo...@apache.org
Subject svn commit: r375845 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/GenerateReport.java
Date Wed, 08 Feb 2006 04:19:00 GMT
Author: fuzzylogic
Date: Tue Feb  7 20:18:57 2006
New Revision: 375845

URL: http://svn.apache.org/viewcvs?rev=375845&view=rev
Log:
Swap the use of Math.ceil and Math.floor to round the result percentages.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/GenerateReport.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/GenerateReport.java
URL: http://svn.apache.org/viewcvs/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/GenerateReport.java?rev=375845&r1=375844&r2=375845&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/GenerateReport.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/GenerateReport.java
Tue Feb  7 20:18:57 2006
@@ -186,8 +186,8 @@
 		NumFail = CountLines (failFileName);
 		NumRun = NumPass+NumFail;
 		NumSkip = CountLines (skipFileName);
-		PercentPass = (int)Math.ceil(100* ((double)NumPass/(double)NumRun));
-		PercentFail = (int)Math.floor(100* ((double)NumFail/(double)NumRun));
+		PercentPass = (int)Math.floor(100* ((double)NumPass/(double)NumRun));
+		PercentFail = (int)Math.ceil(100* ((double)NumFail/(double)NumRun));
 	}
 
 	static int CountLines(String fileName) {



Mime
View raw message