diff options
| author | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:45 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:45 +0200 |
| commit | 9dcec1feba68dc5ba38cdc634f5bf113c0f77348 (patch) | |
| tree | 1d3b0191f4377b0b93ebc67b989e4b8a4f9c3671 /src/monitor/stats.cpp | |
| parent | d34015c5ba231b95de20e9fcd7a33c5b2b9a1006 (diff) | |
tagging yhttpd-0.7.2yhttpd-0.7.2
Diffstat (limited to 'src/monitor/stats.cpp')
| -rw-r--r-- | src/monitor/stats.cpp | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/src/monitor/stats.cpp b/src/monitor/stats.cpp index 5d5cc39..e0aa146 100644 --- a/src/monitor/stats.cpp +++ b/src/monitor/stats.cpp @@ -10,17 +10,14 @@ stats::stats() i_rusage_vec_size = tool::string2int( wrap::CONF->get_elem("httpd.stats.rusagehistory")); - i_num_rooms = 0; //<< pthread_mutex_init( &mut_vec_rusage, NULL ); - pthread_mutex_init( &mut_num_rooms, NULL ); //<< } stats::~stats() { pthread_mutex_destroy( &mut_vec_rusage ); - pthread_mutex_destroy( &mut_num_rooms ); //<< } void @@ -101,50 +98,5 @@ stats::get_rusage_history( string s_type, string s_seperator ) return s_ret; } -//<<* -int -stats::get_num_rooms() -{ - pthread_mutex_lock ( &mut_num_rooms ); - int i_ret = i_num_rooms; - pthread_mutex_unlock( &mut_num_rooms ); - return i_ret; -} - -void -stats::increment_num_rooms() -{ - pthread_mutex_lock ( &mut_num_rooms ); - ++i_num_rooms; - pthread_mutex_unlock( &mut_num_rooms ); -#ifdef NCURSES - - print_num_rooms(); -#endif -} -void -stats::decrement_num_rooms() -{ - pthread_mutex_lock ( &mut_num_rooms ); - --i_num_rooms; - pthread_mutex_unlock( &mut_num_rooms ); -#ifdef NCURSES - - print_num_rooms(); -#endif -} - -#ifdef NCURSES -void -stats::print_num_rooms() -{ - if ( !wrap::NCUR->is_ready() ) - return; - - mvprintw( NCUR_NUM_ROOMS_X, NCUR_NUM_ROOMS_Y, "Rooms: %d", get_num_rooms()); - refresh(); -} -#endif -//*>> #endif |
