svn commit: r663769 - in /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/management: InstrumentationProcessor.java PerformanceCounter.java

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r663769 - in /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/management: InstrumentationProcessor.java PerformanceCounter.java

hadrian-3
Author: hadrian
Date: Thu Jun  5 15:50:53 2008
New Revision: 663769

URL: http://svn.apache.org/viewvc?rev=663769&view=rev
Log:
CAMEL-578.  Patch applied with thanks!

Modified:
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/management/InstrumentationProcessor.java
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/management/PerformanceCounter.java

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/management/InstrumentationProcessor.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/management/InstrumentationProcessor.java?rev=663769&r1=663768&r2=663769&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/management/InstrumentationProcessor.java (original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/management/InstrumentationProcessor.java Thu Jun  5 15:50:53 2008
@@ -43,7 +43,7 @@
         super.process(exchange);
         if (counter != null) {
             if (!exchange.isFailed()) {
-                counter.completedExchange((System.nanoTime() - startTime) / 1000);
+                counter.completedExchange(System.nanoTime() - startTime);
             } else {
                 counter.completedExchange();
             }

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/management/PerformanceCounter.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/management/PerformanceCounter.java?rev=663769&r1=663768&r2=663769&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/management/PerformanceCounter.java (original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/management/PerformanceCounter.java Thu Jun  5 15:50:53 2008
@@ -56,18 +56,18 @@
         return numExchanges.get() - numCompleted.get();
     }
 
-    @ManagedAttribute(description = "Min Processing Time [usec]")
+    @ManagedAttribute(description = "Min Processing Time [ns]")
     public synchronized long getMinProcessingTime() throws Exception {
         return minProcessingTime;
     }
 
-    @ManagedAttribute(description = "Mean Processing Time [usec]")
+    @ManagedAttribute(description = "Mean Processing Time [ns]")
     public synchronized long getMeanProcessingTime() throws Exception {
         long count = numCompleted.get();
         return count > 0 ? (long)totalProcessingTime / count : 0L;
     }
 
-    @ManagedAttribute(description = "Max Processing Time [usec]")
+    @ManagedAttribute(description = "Max Processing Time [ns]")
     public synchronized long getMaxProcessingTime() throws Exception {
         return maxProcessingTime;
     }