]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/s_stats.c
Unbreak /quote help stats as an oper (all where oper and user help are different).
[irc/rqf/shadowircd.git] / src / s_stats.c
index 66ccce92912674c6671e7b0e230753b6c02e23b9..57fe9b8c3b7a57abd272317191c541706a0d9de0 100644 (file)
@@ -21,7 +21,7 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  *  USA
  *
- *  $Id: s_stats.c 1409 2006-05-21 14:46:17Z jilles $
+ *  $Id: s_stats.c 3249 2007-03-05 18:51:17Z nenolod $
  */
 
 #include "stdinc.h"
@@ -139,6 +139,9 @@ tstats(struct Client *source_p)
                           sp->is_wrdi, sp->is_empt);
        sendto_one_numeric(source_p, RPL_STATSDEBUG,
                           "T :numerics seen %u", sp->is_num);
+       sendto_one_numeric(source_p, RPL_STATSDEBUG,
+                          "T :tgchange blocked msgs %u restricted addrs %lu",
+                          sp->is_tgch, dlink_list_length(&tgchange_list));
        sendto_one_numeric(source_p, RPL_STATSDEBUG,
                           "T :auth successes %u fails %u",
                           sp->is_asuc, sp->is_abad);
@@ -180,7 +183,6 @@ count_memory(struct Client *source_p)
        int channel_invex = 0;
        int channel_quiets = 0;
 
-       size_t wwu = 0;         /* whowas users */
        int class_count = 0;    /* classes */
        int conf_count = 0;     /* conf lines */
        int users_invited_count = 0;    /* users invited */
@@ -195,6 +197,7 @@ count_memory(struct Client *source_p)
        size_t channel_quiet_memory = 0;
 
        size_t away_memory = 0; /* memory used by aways */
+       size_t ww = 0;          /* whowas array count */
        size_t wwm = 0;         /* whowas array memory used */
        size_t conf_memory = 0; /* memory used by conf lines */
        size_t mem_servers_cached;      /* memory used by scache */
@@ -213,7 +216,7 @@ count_memory(struct Client *source_p)
 
        size_t total_memory = 0;
 
-       count_whowas_memory(&wwu, &wwm);
+       count_whowas_memory(&ww, &wwm);
 
        DLINK_FOREACH(ptr, global_client_list.head)
        {
@@ -334,14 +337,10 @@ count_memory(struct Client *source_p)
                channel_users * sizeof(dlink_node) + channel_invites * sizeof(dlink_node);
 
        sendto_one_numeric(source_p, RPL_STATSDEBUG,
-                          "z :Whowas users %ld(%ld)",
-                          (long)wwu, (long) (wwu * sizeof(struct User)));
-
-       sendto_one_numeric(source_p, RPL_STATSDEBUG,
-                          "z :Whowas array %u(%d)",
-                          NICKNAMEHISTORYLENGTH, (int) wwm);
+                          "z :Whowas array %ld(%ld)",
+                          (long)ww, (long)wwm);
 
-       totww = wwu * sizeof(struct User) + wwm;
+       totww = wwm;
 
        sendto_one_numeric(source_p, RPL_STATSDEBUG,
                           "z :Hash: client %u(%ld) chan %u(%ld)",
@@ -386,8 +385,4 @@ count_memory(struct Client *source_p)
                           "z :Remote client Memory in use: %ld(%ld)",
                           (long)remote_client_count,
                           (long)remote_client_memory_used);
-
-       sendto_one_numeric(source_p, RPL_STATSDEBUG,
-                          "z :TOTAL: %d Available:  Current max RSS: %lu",
-                          (int) total_memory, get_maxrss());
 }