[vlc-commits] Remove write-only HTTPd statistics

Rémi Denis-Courmont git at videolan.org
Tue Nov 29 19:10:04 CET 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Nov 29 20:09:52 2011 +0200| [88a45a320bd933a6fd649cc8007312b6e769c070] | committer: Rémi Denis-Courmont

Remove write-only HTTPd statistics

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=88a45a320bd933a6fd649cc8007312b6e769c070
---

 src/network/httpd.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/src/network/httpd.c b/src/network/httpd.c
index 16bad68..6a881e2 100644
--- a/src/network/httpd.c
+++ b/src/network/httpd.c
@@ -2017,8 +2017,6 @@ static void httpd_ClientTlsHsOut( httpd_client_t *cl )
 static void* httpd_HostThread( void *data )
 {
     httpd_host_t *host = data;
-    counter_t *p_total_counter = stats_CounterCreate( VLC_VAR_INTEGER, STATS_COUNTER );
-    counter_t *p_active_counter = stats_CounterCreate( VLC_VAR_INTEGER, STATS_COUNTER );
     int evfd = vlc_object_waitpipe( VLC_OBJECT( host ) );
 
     for( ;; )
@@ -2049,7 +2047,6 @@ static void* httpd_HostThread( void *data )
                     cl->i_activity_date+cl->i_activity_timeout < now) ) ) )
             {
                 httpd_ClientClean( cl );
-                stats_UpdateInteger( p_active_counter, -1, NULL );
                 TAB_REMOVE( host->i_client, host->client, cl );
                 free( cl );
                 i_client--;
@@ -2472,8 +2469,6 @@ static void* httpd_HostThread( void *data )
             else
                 p_tls = NULL;
 
-            stats_UpdateInteger( p_total_counter, 1, NULL );
-            stats_UpdateInteger( p_active_counter, 1, NULL );
             cl = httpd_ClientNew( fd, p_tls, now );
             vlc_mutex_lock( &host->lock );
             TAB_APPEND( host->i_client, host->client, cl );
@@ -2484,9 +2479,5 @@ static void* httpd_HostThread( void *data )
 
     }
 
-    if( p_total_counter )
-        stats_CounterClean( p_total_counter );
-    if( p_active_counter )
-        stats_CounterClean( p_active_counter );
     return NULL;
 }



More information about the vlc-commits mailing list