You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by fu...@apache.org on 2006/02/08 05:19:00 UTC
svn commit: r375845 -
/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/GenerateReport.java
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) {