]> git.pld-linux.org Git - packages/ntp.git/blame - ntp-4.2.6p3-ntpdaterecv.patch
- upstart_controlled earlier; rel 3
[packages/ntp.git] / ntp-4.2.6p3-ntpdaterecv.patch
CommitLineData
0ffcfbfc
KK
1diff -up ntp-4.2.6p3/ntpdate/ntpdate.c.ntpdaterecv ntp-4.2.6p3/ntpdate/ntpdate.c
2--- ntp-4.2.6p3/ntpdate/ntpdate.c.ntpdaterecv 2010-11-25 15:18:01.669483673 +0100
3+++ ntp-4.2.6p3/ntpdate/ntpdate.c 2010-11-25 15:18:01.720485666 +0100
4@@ -1042,6 +1042,17 @@ receive(
5 * Shift this data in, then schedule another transmit.
6 */
7 server_data(server, (s_fp) di, &ci, 0);
8+
9+ if ((int)server->filter_nextpt >= sys_samples) {
10+ /*
11+ * Got all the data we need. Mark this guy
12+ * completed and return.
13+ */
14+ server->event_time = 0;
15+ complete_servers++;
16+ return;
17+ }
18+
19 server->event_time = current_time + sys_timeout;
20 }
21
This page took 0.035348 seconds and 4 git commands to generate.