activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1155979 - /activemq/activemq-apollo/trunk/apollo-util/src/main/scala/org/apache/activemq/apollo/util/TimeCounter.scala
Date Wed, 10 Aug 2011 00:20:11 GMT
Author: chirino
Date: Wed Aug 10 00:20:11 2011
New Revision: 1155979

URL: http://svn.apache.org/viewvc?rev=1155979&view=rev
Log:
Convert to the correct units.

Modified:
    activemq/activemq-apollo/trunk/apollo-util/src/main/scala/org/apache/activemq/apollo/util/TimeCounter.scala

Modified: activemq/activemq-apollo/trunk/apollo-util/src/main/scala/org/apache/activemq/apollo/util/TimeCounter.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-util/src/main/scala/org/apache/activemq/apollo/util/TimeCounter.scala?rev=1155979&r1=1155978&r2=1155979&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-util/src/main/scala/org/apache/activemq/apollo/util/TimeCounter.scala
(original)
+++ activemq/activemq-apollo/trunk/apollo-util/src/main/scala/org/apache/activemq/apollo/util/TimeCounter.scala
Wed Aug 10 00:20:11 2011
@@ -86,7 +86,7 @@ class TimeCounter extends MetricProducer
   }
 
   def total(unit:TimeUnit):Long = {
-    TimeUnit.NANOSECONDS.convert(total, unit)
+    unit.convert(total, TimeUnit.NANOSECONDS)
   }
 }
 



Mime
View raw message