summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancois Gouget <fgouget@codeweavers.com>2015-07-15 16:34:00 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2015-07-20 11:15:55 +0200
commit1a8a7df286c36bedd8938dabceb0fbab22ba0cf6 (patch)
tree2fb345cf7685ffe856d48d4c99e534810bb7255c
parent071647780dbda4fabf31e6b09940c14b62313913 (diff)
server: Don't reset the latency before showing it in the invalid net test error message.
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
-rw-r--r--server/main_channel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/main_channel.c b/server/main_channel.c
index 54718baf..bbe96c9a 100644
--- a/server/main_channel.c
+++ b/server/main_channel.c
@@ -971,11 +971,11 @@ static int main_channel_handle_parsed(RedChannelClient *rcc, uint32_t size, uint
mcc->net_test_id = 0;
if (roundtrip <= mcc->latency) {
// probably high load on client or server result with incorrect values
+ spice_printerr("net test: invalid values, latency %" PRIu64
+ " roundtrip %" PRIu64 ". assuming high"
+ " bandwidth", mcc->latency, roundtrip);
mcc->latency = 0;
mcc->net_test_stage = NET_TEST_STAGE_INVALID;
- spice_printerr("net test: invalid values, latency %" PRIu64
- " roundtrip %" PRIu64 ". assuming high"
- "bandwidth", mcc->latency, roundtrip);
red_channel_client_start_connectivity_monitoring(&mcc->base,
CLIENT_CONNECTIVITY_TIMEOUT);
break;