commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nico...@apache.org
Subject svn commit: r896421 - /commons/sandbox/monitoring/trunk/core/src/main/java/org/apache/commons/monitoring/stopwatches/HistoryOfMyThread.java
Date Wed, 06 Jan 2010 12:38:46 GMT
Author: nicolas
Date: Wed Jan  6 12:38:46 2010
New Revision: 896421

URL: http://svn.apache.org/viewvc?rev=896421&view=rev
Log:
bugFix : Thread history is not cleared if to level StopWatch is canceled

Modified:
    commons/sandbox/monitoring/trunk/core/src/main/java/org/apache/commons/monitoring/stopwatches/HistoryOfMyThread.java

Modified: commons/sandbox/monitoring/trunk/core/src/main/java/org/apache/commons/monitoring/stopwatches/HistoryOfMyThread.java
URL: http://svn.apache.org/viewvc/commons/sandbox/monitoring/trunk/core/src/main/java/org/apache/commons/monitoring/stopwatches/HistoryOfMyThread.java?rev=896421&r1=896420&r2=896421&view=diff
==============================================================================
--- commons/sandbox/monitoring/trunk/core/src/main/java/org/apache/commons/monitoring/stopwatches/HistoryOfMyThread.java
(original)
+++ commons/sandbox/monitoring/trunk/core/src/main/java/org/apache/commons/monitoring/stopwatches/HistoryOfMyThread.java
Wed Jan  6 12:38:46 2010
@@ -55,10 +55,7 @@
                 public StopWatch stop( boolean canceled )
                 {
                     super.stop( canceled );
-                    if ( !canceled )
-                    {
-                        historyEnd( super.getElapsedTime() );
-                    }
+                    historyEnd( super.getElapsedTime() );
                     return getDecorated();
                 }
 



Mime
View raw message