/[svn]/ircd-hybrid/branches/8.2.x/src/ircd.c
ViewVC logotype

Diff of /ircd-hybrid/branches/8.2.x/src/ircd.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 6482 by michael, Thu Sep 3 18:49:44 2015 UTC revision 6483 by michael, Thu Sep 3 18:58:01 2015 UTC
# Line 179  set_time(void) Line 179  set_time(void)
179    
180    if (gettimeofday(&newtime, NULL) == -1)    if (gettimeofday(&newtime, NULL) == -1)
181    {    {
182      ilog(LOG_TYPE_IRCD, "Clock Failure (%s), TS can be corrupted",      char buf[IRCD_BUFSIZE];
183           strerror(errno));  
184      sendto_realops_flags(UMODE_SERVNOTICE, L_ALL, SEND_NOTICE,      snprintf(buf, sizeof(buf), "Clock failure, TS can be corrupted: %s",
185                           "Clock Failure (%s), TS can be corrupted",               strerror(errno));
186                           strerror(errno));      server_die(buf, SERVER_SHUTDOWN);
     server_die("Clock Failure", SERVER_SHUTDOWN);  
187    }    }
188    
189    if (newtime.tv_sec < CurrentTime)    if (newtime.tv_sec < CurrentTime)

Legend:
Removed from v.6482  
changed lines
  Added in v.6483

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28