From 9fc9b6a8ed2c2eac8d969e6b5858f5e8e0ee5bc0 Mon Sep 17 00:00:00 2001 From: Andrew Wood Date: Sun, 27 Jul 2025 21:39:36 +0100 Subject: [PATCH] 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). --- src/pv/loop.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pv/loop.c b/src/pv/loop.c index cbacb8b..9607b41 100644 --- a/src/pv/loop.c +++ b/src/pv/loop.c @@ -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),