[aravis] stream: increase statistic resolution.



commit 03daf0e19cb0857bd9c61340e602c8fd03b3bae7
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Mon Apr 12 16:11:02 2010 +0200

    stream: increase statistic resolution.

 src/arvgvstream.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/arvgvstream.c b/src/arvgvstream.c
index 8697546..c39c7e0 100644
--- a/src/arvgvstream.c
+++ b/src/arvgvstream.c
@@ -226,7 +226,7 @@ arv_gv_stream_thread (void *data)
 						statistic_count++;
 						if (statistic_count > 5)
 							arv_statistic_fill (thread_data->statistic,
-									    0, (current_time_us - last_time_us) / 1000,
+									    0, (current_time_us - last_time_us),
 									    buffer->frame_id);
 						last_time_us = current_time_us;
 						g_async_queue_push (thread_data->output_queue, buffer);
@@ -324,7 +324,7 @@ arv_gv_stream_new (GInetAddress *device_address, guint16 port,
 	thread_data->n_size_mismatch_errors = 0;
 	thread_data->n_missing_blocks = 0;
 
-	thread_data->statistic = arv_statistic_new (1, 1000, 1, 10);
+	thread_data->statistic = arv_statistic_new (1, 5000, 200, 0);
 
 	thread_data->socket_buffer_option = ARV_GV_STREAM_OPTION_SOCKET_BUFFER_FIXED;
 	thread_data->socket_buffer_size = 0;



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