From 60c9ab6149695d43d7979925fda04d97a4bd7ffb Mon Sep 17 00:00:00 2001 From: markt Date: Tue, 22 Mar 2011 17:58:15 +0000 Subject: [PATCH] Remove unnecessary casts git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1084271 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/tomcat/jdbc/test/CheckOutThreadTest.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/jdbc-pool/test/org/apache/tomcat/jdbc/test/CheckOutThreadTest.java b/modules/jdbc-pool/test/org/apache/tomcat/jdbc/test/CheckOutThreadTest.java index 0c718b4b8..2c5fa5e77 100644 --- a/modules/jdbc-pool/test/org/apache/tomcat/jdbc/test/CheckOutThreadTest.java +++ b/modules/jdbc-pool/test/org/apache/tomcat/jdbc/test/CheckOutThreadTest.java @@ -412,13 +412,13 @@ public class CheckOutThreadTest extends DefaultTestCase { } 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); } } -- 2.11.0