[gnome-remote-desktop] rdp/nw-auto: Do not artificially limit the measured RTT value



commit ead6f23fffb488dad71bab7e6d5c05fdf5afd281
Author: Pascal Nowack <Pascal Nowack gmx de>
Date:   Wed Jul 13 18:29:46 2022 +0200

    rdp/nw-auto: Do not artificially limit the measured RTT value
    
    It messes with the frame controller, so get rid of the clamp behaviour.

 src/grd-rdp-network-autodetection.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/grd-rdp-network-autodetection.c b/src/grd-rdp-network-autodetection.c
index f416768a..2eb1b460 100644
--- a/src/grd-rdp-network-autodetection.c
+++ b/src/grd-rdp-network-autodetection.c
@@ -343,7 +343,7 @@ track_round_trip_time (GrdRdpNetworkAutodetection *network_autodetection,
   RTTInfo *rtt_info;
 
   rtt_info = g_malloc0 (sizeof (RTTInfo));
-  rtt_info->round_trip_time_us = MIN (pong_time_us - ping_time_us, G_USEC_PER_SEC);
+  rtt_info->round_trip_time_us = pong_time_us - ping_time_us;
   rtt_info->response_time_us = pong_time_us;
 
   g_queue_push_tail (network_autodetection->round_trip_times, rtt_info);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]