summaryrefslogtreecommitdiffstats
path: root/server/reds.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-07-08 18:26:37 +0200
committerAlexander Larsson <alexl@redhat.com>2010-07-08 18:26:37 +0200
commit1a6e77d6d4da9c73dc706574ea3e3fbaa8142f29 (patch)
tree4299cdcfbdf378b575948f0870ef6c365a9e8095 /server/reds.c
parent925f6387c8b5bd63ecd128c9187d8424607e0fa8 (diff)
downloadspice-1a6e77d6d4da9c73dc706574ea3e3fbaa8142f29.tar.gz
spice-1a6e77d6d4da9c73dc706574ea3e3fbaa8142f29.tar.xz
spice-1a6e77d6d4da9c73dc706574ea3e3fbaa8142f29.zip
Fix various misspellings
letancy -> latency compund -> compound SpicedSubMessage -> SpiceSubMessage modifaiers -> modifiers massage -> message outgoiong -> outgoing AlphaBlnd -> AlphaBlend remoth -> remote modifires -> modifiers secore -> secure
Diffstat (limited to 'server/reds.c')
-rw-r--r--server/reds.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/server/reds.c b/server/reds.c
index 8c16896e..1a227aeb 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -294,7 +294,7 @@ typedef struct RedsState {
} RedsState;
uint64_t bitrate_per_sec = ~0;
-static uint64_t letancy = 0;
+static uint64_t latency = 0;
static RedsState *reds = NULL;
@@ -750,7 +750,7 @@ static void reds_disconnect()
reds->in_handler.end_pos = 0;
bitrate_per_sec = ~0;
- letancy = 0;
+ latency = 0;
reds_mig_cleanup();
reds->disconnecting = FALSE;
@@ -1721,20 +1721,20 @@ static void reds_main_handle_message(void *opaque, size_t size, uint32_t type, v
case NET_TEST_STAGE_LATENCY:
reds->net_test_id++;
reds->net_test_stage = NET_TEST_STAGE_RATE;
- letancy = roundtrip;
+ latency = roundtrip;
break;
case NET_TEST_STAGE_RATE:
reds->net_test_id = 0;
- if (roundtrip <= letancy) {
+ if (roundtrip <= latency) {
// probably high load on client or server result with incorrect values
- letancy = 0;
- red_printf("net test: invalid values, letancy %lu roundtrip %lu. assuming high"
- "bandwidth", letancy, roundtrip);
+ latency = 0;
+ red_printf("net test: invalid values, latency %lu roundtrip %lu. assuming high"
+ "bandwidth", latency, roundtrip);
break;
}
- bitrate_per_sec = (uint64_t)(NET_TEST_BYTES * 8) * 1000000 / (roundtrip - letancy);
- red_printf("net test: letancy %f ms, bitrate %lu bps (%f Mbps)%s",
- (double)letancy / 1000,
+ bitrate_per_sec = (uint64_t)(NET_TEST_BYTES * 8) * 1000000 / (roundtrip - latency);
+ red_printf("net test: latency %f ms, bitrate %lu bps (%f Mbps)%s",
+ (double)latency / 1000,
bitrate_per_sec,
(double)bitrate_per_sec / 1024 / 1024,
IS_LOW_BANDWIDTH() ? " LOW BANDWIDTH" : "");