From 9ab82cde1ebe26abfc07b73b55cf4db412e55611 Mon Sep 17 00:00:00 2001 From: Andrew Wood Date: Sun, 27 Jul 2025 21:38:55 +0100 Subject: [PATCH] Use the original info_aray size for comparison as the "control" structure may be made irrelevant here soon (#165). --- src/pv/watchpid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pv/watchpid.c b/src/pv/watchpid.c index 42c3516..482020c 100644 --- a/src/pv/watchpid.c +++ b/src/pv/watchpid.c @@ -570,7 +570,7 @@ int pv_watchpid_scanfds(pvstate_t state, * nor estimated time of completion are displayed. */ info_array[use_idx].state->control.size = info_array[use_idx].size; - if (info_array[use_idx].state->control.size < 1) { + if (info_array[use_idx].size < 1) { char *fmt; while (NULL != (fmt = strstr(info_array[use_idx].state->control.default_format, "%e"))) { debug("%s", "zero size - removing estimated time remaining");