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

Comparing ircd-hybrid-8/src/s_log.c (file contents):
Revision 1156 by michael, Tue Aug 9 20:29:20 2011 UTC vs.
Revision 1241 by michael, Thu Sep 29 20:26:09 2011 UTC

# Line 198 | Line 198 | get_log_level_as_string(int level)
198   void
199   log_user_exit(struct Client *source_p)
200   {
201 <  time_t on_for = CurrentTime - source_p->firsttime;
201 >  time_t on_for = CurrentTime - source_p->localClient->firsttime;
202   #ifdef SYSLOG_USERS
203    if (IsClient(source_p))
204    {
205      ilog(L_INFO, "%s (%3u:%02u:%02u): %s!%s@%s %llu/%llu",
206 <         myctime(source_p->firsttime), (unsigned int)(on_for / 3600),
206 >         myctime(source_p->localClient->firsttime), (unsigned int)(on_for / 3600),
207           (unsigned int)((on_for % 3600)/60), (unsigned int)(on_for % 60),
208           source_p->name, source_p->username, source_p->host,
209           source_p->localClient->send.bytes>>10,
# Line 235 | Line 235 | log_user_exit(struct Client *source_p)
235        {
236          size_t nbytes = ircsprintf(linebuf,
237                     "%s (%3u:%02u:%02u): %s!%s@%s %llu/%llu\n",
238 <                   myctime(source_p->firsttime),
238 >                   myctime(source_p->localClient->firsttime),
239                     (unsigned int)(on_for / 3600),
240                     (unsigned int)((on_for % 3600)/60),
241                     (unsigned int)(on_for % 60),

Diff Legend

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