At the end of the transfer, exchange information with the other monitor when in "monitor both" mode, so both sides learn each other's final transfer value, to give the correct final ratio (#67).

This commit is contained in:
Andrew Wood
2026-04-04 21:07:04 +01:00
parent f5fd94ef77
commit b79273bb91
+7
View File
@@ -640,6 +640,13 @@ int pv_main_loop(pvstate_t state)
|| (state->control.delay_start < 0.001)) {
pv_elapsedtime_copy(&next_update, &cur_time);
}
/*
* In "--monitor both" mode, run a final exchange of
* information with the other side.
*/
if (state->control.othermonitor_pid > 0) {
pv__monitor_exchange(state);
}
}
/*