Carry the fd info_array "size" into the global "control" structure just before calling pv_display() so it gets used without having to have a per-fd copy of "control" (#165).

This commit is contained in:
Andrew Wood
2025-07-27 21:39:36 +01:00
parent 9ab82cde1e
commit 9fc9b6a8ed
+1
View File
@@ -999,6 +999,7 @@ int pv_watchpid_loop(pvstate_t state)
info_array[idx].state->transfer.transferred = position_now;
info_array[idx].state->transfer.total_written = position_now;
state->control.name = info_array[idx].display_name;
state->control.size = info_array[idx].size;
pv_display(&(state->status),
&(state->control), &(info_array[idx].state->flags),
&(info_array[idx].state->transfer), &(info_array[idx].state->calc),