summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2011-04-12 14:27:51 +0300
committerAlon Levy <alevy@redhat.com>2011-05-09 09:46:26 +0300
commitdb7d6c866ed444396c9d68d4881d22b75a4deaa5 (patch)
tree2fd0a18dd9785a15f01502610e2d83d378c3ee73
parent87486fd790eb14d3f71c27316cf9602009eccdd1 (diff)
downloadspice-db7d6c866ed444396c9d68d4881d22b75a4deaa5.tar.gz
spice-db7d6c866ed444396c9d68d4881d22b75a4deaa5.tar.xz
spice-db7d6c866ed444396c9d68d4881d22b75a4deaa5.zip
server/red_worker: fix typo (lats_send_time)
-rw-r--r--server/red_worker.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/red_worker.c b/server/red_worker.c
index b8d6a962..752d16cf 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -382,7 +382,7 @@ typedef struct StreamAgent {
PipeItem create_item;
PipeItem destroy_item;
Stream *stream;
- uint64_t lats_send_time;
+ uint64_t last_send_time;
int frames;
int drops;
@@ -7481,7 +7481,7 @@ static inline int red_send_stream_data(DisplayChannel *display_channel,
StreamAgent *agent = &display_channel->stream_agents[stream - worker->streams_buf];
uint64_t time_now = red_now();
- if (time_now - agent->lats_send_time < (1000 * 1000 * 1000) / agent->fps) {
+ if (time_now - agent->last_send_time < (1000 * 1000 * 1000) / agent->fps) {
agent->frames--;
return TRUE;
}
@@ -7542,7 +7542,7 @@ static inline int red_send_stream_data(DisplayChannel *display_channel,
spice_marshall_msg_display_stream_data(base_marshaller, &stream_data);
spice_marshaller_add_ref(base_marshaller,
display_channel->send_data.stream_outbuf, n);
- agent->lats_send_time = time_now;
+ agent->last_send_time = time_now;
return TRUE;
}
@@ -7834,7 +7834,7 @@ static void red_display_marshall_stream_start(DisplayChannel *display_channel,
RedChannel *channel = &display_channel->common.base;
Stream *stream = agent->stream;
- agent->lats_send_time = 0;
+ agent->last_send_time = 0;
ASSERT(stream);
red_channel_init_send_data(channel, SPICE_MSG_DISPLAY_STREAM_CREATE,
stream->current ? &stream->current->pipe_item : NULL);