summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2015-11-10 11:59:58 +0000
committerFrediano Ziglio <fziglio@redhat.com>2015-11-10 15:43:22 +0000
commitab2e8a9cc00ea6e04b1622dcc6bed05e74963480 (patch)
tree3561dfe2f575fb8931236cbea122f4ea14656819
parent1763e7ebf29ec439c78c79353e4a89f93a0f783c (diff)
downloadspice-ab2e8a9cc00ea6e04b1622dcc6bed05e74963480.zip
spice-ab2e8a9cc00ea6e04b1622dcc6bed05e74963480.tar.gz
spice-ab2e8a9cc00ea6e04b1622dcc6bed05e74963480.tar.xz
worker: fix RED_STREAM_TIMOUT macro spelling
Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
-rw-r--r--server/red_worker.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/red_worker.c b/server/red_worker.c
index 6138781..d73d616 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -82,7 +82,7 @@
#define RED_STREAM_DETACTION_MAX_DELTA ((1000 * 1000 * 1000) / 5) // 1/5 sec
#define RED_STREAM_CONTINUS_MAX_DELTA (1000 * 1000 * 1000)
-#define RED_STREAM_TIMOUT (1000 * 1000 * 1000)
+#define RED_STREAM_TIMEOUT (1000 * 1000 * 1000)
#define RED_STREAM_FRAMES_START_CONDITION 20
#define RED_STREAM_GRADUAL_FRAMES_START_CONDITION 0.2
#define RED_STREAM_FRAMES_RESET_CONDITION 100
@@ -1924,7 +1924,7 @@ static inline unsigned int red_get_streams_timout(RedWorker *worker)
Stream *stream;
stream = SPICE_CONTAINEROF(item, Stream, link);
- red_time_t delta = (stream->last_time + RED_STREAM_TIMOUT) - now;
+ red_time_t delta = (stream->last_time + RED_STREAM_TIMEOUT) - now;
if (delta < 1000 * 1000) {
return 0;
@@ -1944,7 +1944,7 @@ static inline void red_handle_streams_timout(RedWorker *worker)
while (item) {
Stream *stream = SPICE_CONTAINEROF(item, Stream, link);
item = ring_next(ring, item);
- if (now >= (stream->last_time + RED_STREAM_TIMOUT)) {
+ if (now >= (stream->last_time + RED_STREAM_TIMEOUT)) {
red_detach_stream_gracefully(worker, stream, NULL);
red_stop_stream(worker, stream);
}