Use the original info_aray size for comparison as the "control" structure may be made irrelevant here soon (#165).

This commit is contained in:
Andrew Wood
2025-07-27 21:38:55 +01:00
parent a7f392e3c3
commit 9ab82cde1e
+1 -1
View File
@@ -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");