From eae06cf3c06bcef5701ae78490fd4c8f4c078971 Mon Sep 17 00:00:00 2001 From: Andrew Wood Date: Thu, 7 May 2026 23:00:33 +0100 Subject: [PATCH] Correct the remote setting of the rate limit so that -R without -L does not turn off the current rate limiting of the remote process (#193). --- src/pv/remote.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pv/remote.c b/src/pv/remote.c index ba0df2d..6f07d98 100644 --- a/src/pv/remote.c +++ b/src/pv/remote.c @@ -324,7 +324,8 @@ static bool pv__rxsignal_usr2(pvstate_t state) pv_state_set_format_options(state, format_options); - pv_state_rate_limit_set(state, msgbuf.rate_limit, msgbuf.rate_limit_active); + if (msgbuf.rate_limit_active) + pv_state_rate_limit_set(state, msgbuf.rate_limit, msgbuf.rate_limit_active); if (msgbuf.buffer_size > 0) { pv_state_target_buffer_size_set(state, msgbuf.buffer_size); }