summaryrefslogtreecommitdiff
path: root/src/stats.h
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2013-04-06 13:14:46 +0200
committerPaul Buetow <paul@buetow.org>2013-04-06 13:14:46 +0200
commiteab0b1c2d649fa16707b24cd2a91f195078167b0 (patch)
treee960f351655305e3911089ff75677caef364a280 /src/stats.h
parent07706f56cd421bf8b101a5c0fe44674d36e161a0 (diff)
tagging ychat-0.7.2ychat-0.7.2
Diffstat (limited to 'src/stats.h')
-rw-r--r--src/stats.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/stats.h b/src/stats.h
index 0ef60a2..647f504 100644
--- a/src/stats.h
+++ b/src/stats.h
@@ -21,6 +21,8 @@ private:
vector< map<string,long> > vec_rusage_history;
pthread_mutex_t mut_vec_rusage;
+ int i_num_rooms; //<<
+ pthread_mutex_t mut_num_rooms; //<<
void set_rusage_vec_size( int i_rusage_vec_size );
@@ -28,9 +30,19 @@ public:
stats( );
~stats( );
+ //<<*
+ int get_num_rooms();
+ void increment_num_rooms();
+ void decrement_num_rooms();
+ //*>>
void update_rusage_history();
string get_rusage_history( string s_type, string s_seperator );
long get_ru_maxrss();
+ //<<*
+#ifdef NCURSES
+ void print_num_rooms();
+#endif
+ //*>>
};
#endif