diff --git a/lib/fencing/st_client.c b/lib/fencing/st_client.c index dc40bbe5a80..df10eb45b2c 100644 --- a/lib/fencing/st_client.c +++ b/lib/fencing/st_client.c @@ -2421,7 +2421,6 @@ stonith_api_time(uint32_t nodeid, const char *uname, bool in_progress) char *name = NULL; time_t when = 0; - time_t progress = 0; stonith_t *st = NULL; stonith_history_t *history, *hp = NULL; enum stonith_call_options opts = st_opt_sync_call; @@ -2453,9 +2452,6 @@ stonith_api_time(uint32_t nodeid, const char *uname, bool in_progress) entries++; if (in_progress) { progress++; - if (hp->state != st_done && hp->state != st_failed) { - progress = time(NULL); - } } else if (hp->state == st_done) { completed++; @@ -2472,10 +2468,6 @@ stonith_api_time(uint32_t nodeid, const char *uname, bool in_progress) } } - if (progress) { - when = progress; - } - if (st) { st->cmds->disconnect(st); stonith_api_delete(st);