diff options
-rw-r--r-- | networking/ntpd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/networking/ntpd.c b/networking/ntpd.c index bfd5705fc..5cc71ca7a 100644 --- a/networking/ntpd.c +++ b/networking/ntpd.c | |||
@@ -757,7 +757,7 @@ reset_peer_stats(peer_t *p, double offset) | |||
757 | * and clear reachable bits, but this proved to be too agressive: | 757 | * and clear reachable bits, but this proved to be too agressive: |
758 | * after step (tested with suspending laptop for ~30 secs), | 758 | * after step (tested with suspending laptop for ~30 secs), |
759 | * this caused all previous data to be considered invalid, | 759 | * this caused all previous data to be considered invalid, |
760 | * making us needing to collect full ~8 datapoins per peer | 760 | * making us needing to collect full ~8 datapoints per peer |
761 | * after step in order to start trusting them. | 761 | * after step in order to start trusting them. |
762 | * In turn, this was making poll interval decrease even after | 762 | * In turn, this was making poll interval decrease even after |
763 | * step was done. (Poll interval decreases already before step | 763 | * step was done. (Poll interval decreases already before step |
@@ -800,6 +800,8 @@ resolve_peer_hostname(peer_t *p) | |||
800 | free(p->p_dotted); | 800 | free(p->p_dotted); |
801 | p->p_lsa = lsa; | 801 | p->p_lsa = lsa; |
802 | p->p_dotted = xmalloc_sockaddr2dotted_noport(&lsa->u.sa); | 802 | p->p_dotted = xmalloc_sockaddr2dotted_noport(&lsa->u.sa); |
803 | VERB1 if (strcmp(p->p_hostname, p->p_dotted) != 0) | ||
804 | bb_error_msg("'%s' is %s", p->p_hostname, p->p_dotted); | ||
803 | } else { | 805 | } else { |
804 | /* error message is emitted by host2sockaddr() */ | 806 | /* error message is emitted by host2sockaddr() */ |
805 | set_next(p, HOSTNAME_INTERVAL); | 807 | set_next(p, HOSTNAME_INTERVAL); |