]> git.sesse.net Git - vlc/commitdiff
Remove write-only HTTPd statistics
authorRémi Denis-Courmont <remi@remlab.net>
Tue, 29 Nov 2011 18:09:52 +0000 (20:09 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 29 Nov 2011 18:09:52 +0000 (20:09 +0200)
src/network/httpd.c

index 16bad68f4e9c422fa311224df517de9a1b53446c..6a881e27c044945e16cbe44515e716cee599d4b4 100644 (file)
@@ -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;
 }