Author: challngr
Date: Thu Jul 10 17:02:35 2014
New Revision: 1609505

URL: http://svn.apache.org/r1609505
Log:
UIMA-3939 Properly count node failures.  Pre-this it was off by two!

Modified:
    
uima/sandbox/uima-ducc/trunk/uima-ducc-common/src/main/java/org/apache/uima/ducc/common/ANodeStability.java

Modified: 
uima/sandbox/uima-ducc/trunk/uima-ducc-common/src/main/java/org/apache/uima/ducc/common/ANodeStability.java
URL: 
http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/uima-ducc-common/src/main/java/org/apache/uima/ducc/common/ANodeStability.java?rev=1609505&r1=1609504&r2=1609505&view=diff
==============================================================================
--- 
uima/sandbox/uima-ducc/trunk/uima-ducc-common/src/main/java/org/apache/uima/ducc/common/ANodeStability.java
 (original)
+++ 
uima/sandbox/uima-ducc/trunk/uima-ducc-common/src/main/java/org/apache/uima/ducc/common/ANodeStability.java
 Thu Jul 10 17:02:35 2014
@@ -93,8 +93,8 @@ public abstract class ANodeStability
                 for ( Node n : heartbeats.keySet() ) {
                     int c = heartbeats.get(n);
                     
-                    if ( c++ > nodeStability )  deadNodes.put(n,n);
-                    if ( c > 1 )                missedNode(n, c);    // tell 
implementor if he cares
+                    if ( ++c >= nodeStability )  deadNodes.put(n,n);
+                    if ( c > 1 )                 missedNode(n, c);    // tell 
implementor if he cares
                                                                      // note 
that first miss is "free"
                                                                      // 
because of timing, it may not be
                                                                      // a real 
miss


Reply via email to