Author: markt
Date: Tue Mar 22 17:58:15 2011
New Revision: 1084271

URL: http://svn.apache.org/viewvc?rev=1084271&view=rev
Log:
Remove unnecessary casts

Modified:
    
tomcat/trunk/modules/jdbc-pool/test/org/apache/tomcat/jdbc/test/CheckOutThreadTest.java

Modified: 
tomcat/trunk/modules/jdbc-pool/test/org/apache/tomcat/jdbc/test/CheckOutThreadTest.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/modules/jdbc-pool/test/org/apache/tomcat/jdbc/test/CheckOutThreadTest.java?rev=1084271&r1=1084270&r2=1084271&view=diff
==============================================================================
--- 
tomcat/trunk/modules/jdbc-pool/test/org/apache/tomcat/jdbc/test/CheckOutThreadTest.java
 (original)
+++ 
tomcat/trunk/modules/jdbc-pool/test/org/apache/tomcat/jdbc/test/CheckOutThreadTest.java
 Tue Mar 22 17:58:15 2011
@@ -412,13 +412,13 @@ public class CheckOutThreadTest extends 
             }
             if (System.getProperty("print-thread-stats")!=null) {
                 System.out.println("["+getName()+"] "+
-                    "\n\tMax time to retrieve 
connection:"+(((float)max)/1000f/1000f)+" ms."+
-                    "\n\tTotal time to retrieve 
connection:"+(((float)totalmax)/1000f/1000f)+" ms."+
-                    "\n\tAverage time to retrieve 
connection:"+(((float)totalmax)/1000f/1000f)/(float)nroffetch+" ms."+
-                    "\n\tMax time to close 
connection:"+(((float)cmax)/1000f/1000f)+" ms."+
-                    "\n\tTotal time to close 
connection:"+(((float)totalcmax)/1000f/1000f)+" ms."+
-                    "\n\tAverage time to close 
connection:"+(((float)totalcmax)/1000f/1000f)/(float)nroffetch+" ms."+
-                    "\n\tRun time:"+(((float)totalruntime)/1000f/1000f)+" ms."+
+                    "\n\tMax time to retrieve connection:"+(max/1000f/1000f)+" 
ms."+
+                    "\n\tTotal time to retrieve 
connection:"+(totalmax/1000f/1000f)+" ms."+
+                    "\n\tAverage time to retrieve 
connection:"+(totalmax/1000f/1000f)/nroffetch+" ms."+
+                    "\n\tMax time to close connection:"+(cmax/1000f/1000f)+" 
ms."+
+                    "\n\tTotal time to close 
connection:"+(totalcmax/1000f/1000f)+" ms."+
+                    "\n\tAverage time to close 
connection:"+(totalcmax/1000f/1000f)/nroffetch+" ms."+
+                    "\n\tRun time:"+(totalruntime/1000f/1000f)+" ms."+
                     "\n\tNr of fetch:"+nroffetch);
             }
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to