[srvx-commits] CVS: services/src proto-p10.c,1.42,1.43
Brought to you by:
entrope
|
From: Entrope <en...@us...> - 2002-10-31 03:43:05
|
Update of /cvsroot/srvx/services/src
In directory usw-pr-cvs1:/tmp/cvs-serv9525/src
Modified Files:
proto-p10.c
Log Message:
set burst_begin after we get SERVER from our uplink (and adjust our time)
Index: proto-p10.c
===================================================================
RCS file: /cvsroot/srvx/services/src/proto-p10.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -r1.42 -r1.43
*** proto-p10.c 29 Oct 2002 21:07:37 -0000 1.42
--- proto-p10.c 31 Oct 2002 03:43:02 -0000 1.43
***************
*** 499,503 ****
{
void timed_send_ping(void *data);
- extern time_t burst_begin;
self->self_burst = self->burst = 1;
--- 499,502 ----
***************
*** 505,509 ****
irc_server(self);
burst_length = 0;
- burst_begin = now;
timeq_add(now + ping_freq, timed_send_ping, 0);
}
--- 504,507 ----
***************
*** 778,781 ****
--- 776,783 ----
clock_skew = srv->link - (now - clock_skew);
}
+ }
+ if (srv == self->uplink) {
+ extern time_t burst_begin;
+ burst_begin = now + clock_skew;
}
return 1;
|