ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/modules/m_stats.c
(Generate patch)

Comparing ircd-hybrid-7.3/modules/m_stats.c (file contents):
Revision 1121 by michael, Sun Jan 9 11:03:03 2011 UTC vs.
Revision 1127 by michael, Sun Feb 27 11:05:40 2011 UTC

# Line 520 | Line 520 | count_memory(struct Client *source_p)
520    count_whowas_memory(&wwu, &wwm);
521    watch_count_memory(&watch_list_headers, &watch_list_memory);
522  
523 <  sendto_one(source_p, ":%s %d %s z :WATCH headers %u(%u) entries %d(%d)",
523 >  sendto_one(source_p, ":%s %d %s z :WATCH headers %u(%u) entries %d(%u)",
524               me.name, RPL_STATSDEBUG, source_p->name, watch_list_headers,
525               watch_list_memory, watch_list_entries,
526               watch_list_entries * sizeof(dlink_node) * 2);
# Line 538 | Line 538 | count_memory(struct Client *source_p)
538               local_client_conf_count,
539               (unsigned long long)(local_client_conf_count * sizeof(dlink_node)));
540  
541 <  sendto_one(source_p, ":%s %d %s z :Resv channels %lu(%lu) nicks %lu(%lu)",
541 >  sendto_one(source_p, ":%s %d %s z :Resv channels %u(%lu) nicks %u(%lu)",
542               me.name, RPL_STATSDEBUG, source_p->name,
543               dlink_list_length(&resv_channel_list),
544               dlink_list_length(&resv_channel_list) * sizeof(struct ResvChannel),
# Line 549 | Line 549 | count_memory(struct Client *source_p)
549               me.name, RPL_STATSDEBUG, source_p->name,
550               class_count, (unsigned long long)(class_count * sizeof(struct ClassItem)));
551  
552 <  sendto_one(source_p, ":%s %d %s z :Channels %lu(%llu) Topics %u(%d)",
552 >  sendto_one(source_p, ":%s %d %s z :Channels %uu(%llu) Topics %u(%u)",
553               me.name, RPL_STATSDEBUG, source_p->name,
554               dlink_list_length(&global_channel_list),
555               channel_memory, topic_count, topic_count *
# Line 604 | Line 604 | count_memory(struct Client *source_p)
604  
605    local_client_memory_used = local_client_count*(sizeof(struct Client) + sizeof(struct LocalUser));
606    total_memory += local_client_memory_used;
607 <  sendto_one(source_p, ":%s %d %s z :Local client Memory in use: %d(%llu)",
607 >  sendto_one(source_p, ":%s %d %s z :Local client Memory in use: %u(%llu)",
608               me.name, RPL_STATSDEBUG, source_p->name, local_client_count,
609               local_client_memory_used);
610  
611    remote_client_memory_used = remote_client_count * sizeof(struct Client);
612    total_memory += remote_client_memory_used;
613 <  sendto_one(source_p, ":%s %d %s z :Remote client Memory in use: %d(%llu)",
613 >  sendto_one(source_p, ":%s %d %s z :Remote client Memory in use: %u(%llu)",
614               me.name, RPL_STATSDEBUG, source_p->name, remote_client_count,
615               remote_client_memory_used);
616  
# Line 1203 | Line 1203 | stats_shared(struct Client *source_p)
1203   static void
1204   stats_servers(struct Client *source_p)
1205   {
1206 <  struct Client *target_p;
1207 <  dlink_node *ptr;
1208 <  int j = 0;
1206 >  dlink_node *ptr = NULL;
1207  
1208    DLINK_FOREACH(ptr, serv_list.head)
1209    {
1210 <    target_p = ptr->data;
1213 <
1214 <    j++;
1210 >    const struct Client *target_p = ptr->data;
1211  
1212      sendto_one(source_p, ":%s %d %s v :%s (%s!%s@%s) Idle: %d",
1213 <               from, RPL_STATSDEBUG, to,
1214 <               target_p->name,
1215 <               (target_p->serv->by[0] ? target_p->serv->by : "Remote."),
1220 <               "*", "*", (int)(CurrentTime - target_p->lasttime));
1213 >               from, RPL_STATSDEBUG, to, target_p->name,
1214 >               (target_p->serv->by[0] ? target_p->serv->by : "Remote."),
1215 >               "*", "*", (int)(CurrentTime - target_p->lasttime));
1216    }
1217  
1218 <  sendto_one(source_p, ":%s %d %s v :%d Server(s)",
1219 <             from, RPL_STATSDEBUG, to, j);
1218 >  sendto_one(source_p, ":%s %d %s v :%u Server(s)",
1219 >             from, RPL_STATSDEBUG, to, dlink_list_length(&serv_list));
1220   }
1221  
1222   static void

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)