From 520ca0e824ca1ef8a91ccbc0b416c5096ece9808 Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Sun, 19 Jun 2005 02:31:27 +0000 Subject: [PATCH] "/stats z" formatting tweaks. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1429 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 5 +++++ ircd/s_debug.c | 20 +++++++------------- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2b990df..772912d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-06-18 Michael Poole + + * ircd/s_debug.c (count_memory): Consolidate several lines; make + initial letter capitalization consistent. + 2005-06-19 Andrew Miller * ircd/s_stats.c: Remove the "debug only" label on memusage stats, diff --git a/ircd/s_debug.c b/ircd/s_debug.c index 6df059b..53338c2 100644 --- a/ircd/s_debug.c +++ b/ircd/s_debug.c @@ -320,32 +320,27 @@ void count_memory(struct Client *cptr, const struct StatDesc *sd, send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG, ":User channels %d(%zu) Aways %d(%zu)", memberships, memberships * sizeof(struct Membership), aw, awm); - send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG, ":Attached confs %d(%zu)", - lcc, lcc * sizeof(struct SLink)); totcl = cm + cnm + us * sizeof(struct User) + memberships * sizeof(struct Membership) + awm; totcl += lcc * sizeof(struct SLink) + usi * sizeof(struct SLink); - send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG, ":Conflines %d(%zu)", co, - com); - - send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG, ":Classes %d(%zu)", cl, - cl * sizeof(struct ConnectionClass)); + send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG, ":Conflines %d(%zu) Attached %d(%zu) Classes %d(%zu)", + co, com, lcc, lcc * sizeof(struct SLink), + cl, cl * sizeof(struct ConnectionClass)); send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG, ":Channels %d(%zu) Bans %d(%zu)", ch, chm, chb, chbm); send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG, - ":Channel members %d(%zu) invite %d(%zu)", memberships, + ":Channel Members %d(%zu) Invites %d(%zu)", memberships, memberships * sizeof(struct Membership), chi, chi * sizeof(struct SLink)); totch = chm + chbm + chi * sizeof(struct SLink); send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG, - ":Whowas users %d(%zu) away %d(%zu)", wwu, - wwu * sizeof(struct User), wwa, wwam); - send_reply(cptr, SND_EXPLICIT | RPL_STATSDEBUG, ":Whowas array %d(%zu)", - feature_int(FEAT_NICKNAMEHISTORYLENGTH), wwm); + ":Whowas Users %d(%zu) Away %d(%zu) Array %d(%zu)", + wwu, wwu * sizeof(struct User), wwa, wwam, + feature_int(FEAT_NICKNAMEHISTORYLENGTH), wwm); totww = wwu * sizeof(struct User) + wwam + wwm; @@ -398,4 +393,3 @@ void count_memory(struct Client *cptr, const struct StatDesc *sd, totww, totch, totcl, com, dbufs_allocated, msg_allocated, msgbuf_allocated); } - -- 2.20.1