Blob Blame History Raw
commit 893a7468b83b8323ee343903617bbc72a7c3205b
Author: David Vossel <dvossel@redhat.com>
Date:   Thu Feb 27 11:50:32 2014 -0600

    Fix: stonith_api_time_helper now returns when the most recent fencing operation completed
    
    (cherry picked from commit 054fedfe70867c6f333b61e68fb64bf68e71c90b)
    
    Conflicts:
    	lib/fencing/st_client.c

diff --git a/lib/fencing/st_client.c b/lib/fencing/st_client.c
index 02f2836..4deb71f 100644
--- a/lib/fencing/st_client.c
+++ b/lib/fencing/st_client.c
@@ -2458,7 +2458,9 @@ stonith_api_time(uint32_t nodeid, const char *uname, bool in_progress)
 
             } else if (hp->state == st_done) {
                 completed++;
-                when = hp->completed;
+                if (hp->completed > when) {
+                    when = hp->completed;
+                }
             }
         }