ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/branches/newio/modules/m_stats.c
(Generate patch)

Comparing ircd-hybrid-8/modules/m_stats.c (file contents):
Revision 1459 by michael, Fri Jul 6 14:23:09 2012 UTC vs.
Revision 1483 by michael, Wed Jul 25 19:15:48 2012 UTC

# Line 143 | Line 143 | stats_memory(struct Client *source_p, in
143    unsigned int safelist_count = 0;
144    uint64_t safelist_memory = 0;
145  
146  uint64_t away_memory = 0;       /* memory used by aways           */
146    uint64_t wwm = 0;               /* whowas array memory used       */
147    uint64_t conf_memory = 0;       /* memory used by conf lines      */
148    uint64_t mem_ips_stored;        /* memory used by ip address hash */
# Line 182 | Line 181 | stats_memory(struct Client *source_p, in
181      {
182        ++users_counted;
183  
184 <      if (target_p->away != NULL)
186 <      {
184 >      if (target_p->away[0])
185          ++aways_counted;
188        away_memory += strlen(target_p->away) + 1;
189      }
186      }
187    }
188  
# Line 283 | Line 279 | stats_memory(struct Client *source_p, in
279               me.name, RPL_STATSDEBUG, source_p->name, users_counted,
280               (users_counted * sizeof(struct Client)));
281  
282 <  sendto_one(source_p, ":%s %d %s z :User aways %u(%llu)",
282 >  sendto_one(source_p, ":%s %d %s z :User aways %u",
283               me.name, RPL_STATSDEBUG, source_p->name,
284 <             aways_counted, away_memory);
284 >             aways_counted);
285  
286    sendto_one(source_p, ":%s %d %s z :Attached confs %u(%llu)",
287               me.name, RPL_STATSDEBUG, source_p->name,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines