diff options
author | Leonid Lisovskiy | 2010-10-20 22:36:51 +0200 |
---|---|---|
committer | Denys Vlasenko | 2010-10-20 22:36:51 +0200 |
commit | 894ef6003242bcb0b5ae4ba766475ed048b9f5ca (patch) | |
tree | 0f11cc56014ea193bb299ac356427a1c513c8d6a /networking | |
parent | 5d374e9b148b85954816e9f79e4be160ed3054bd (diff) | |
download | busybox-894ef6003242bcb0b5ae4ba766475ed048b9f5ca.zip busybox-894ef6003242bcb0b5ae4ba766475ed048b9f5ca.tar.gz |
ntpd: fix usage text and a typo in constant name
Signed-off-by: Leonid Lisovskiy <lly.dev@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r-- | networking/ntpd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/networking/ntpd.c b/networking/ntpd.c index ca4afa0..b7bd239 100644 --- a/networking/ntpd.c +++ b/networking/ntpd.c @@ -49,7 +49,7 @@ /* High-level description of the algorithm: * * We start running with very small poll_exp, BURSTPOLL, - * in order to quickly accumulate INITIAL_SAMLPES datapoints + * in order to quickly accumulate INITIAL_SAMPLES datapoints * for each peer. Then, time is stepped if the offset is larger * than STEP_THRESHOLD, otherwise it isn't; anyway, we enlarge * poll_exp to MINPOLL and enter frequency measurement step: @@ -77,7 +77,7 @@ #define RETRY_INTERVAL 5 /* on error, retry in N secs */ #define RESPONSE_INTERVAL 15 /* wait for reply up to N secs */ -#define INITIAL_SAMLPES 4 /* how many samples do we want for init */ +#define INITIAL_SAMPLES 4 /* how many samples do we want for init */ /* Clock discipline parameters and constants */ @@ -1972,14 +1972,14 @@ int ntpd_main(int argc UNUSED_PARAM, char **argv) idx2peer = xzalloc(sizeof(idx2peer[0]) * cnt); pfd = xzalloc(sizeof(pfd[0]) * cnt); - /* Countdown: we never sync before we sent INITIAL_SAMLPES+1 + /* Countdown: we never sync before we sent INITIAL_SAMPLES+1 * packets to each peer. * NB: if some peer is not responding, we may end up sending * fewer packets to it and more to other peers. - * NB2: sync usually happens using INITIAL_SAMLPES packets, + * NB2: sync usually happens using INITIAL_SAMPLES packets, * since last reply does not come back instantaneously. */ - cnt = G.peer_cnt * (INITIAL_SAMLPES + 1); + cnt = G.peer_cnt * (INITIAL_SAMPLES + 1); while (!bb_got_signal) { llist_t *item; |