[git commit] ntpd: fix wrong delay value in one of the printed messages

Denys Vlasenko vda.linux at googlemail.com
Sun Apr 20 11:04:23 UTC 2014


commit: http://git.busybox.net/busybox/commit/?id=5a21c8550ef9ed9cfcc4abed7d59e58017a306e5
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 networking/ntpd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/networking/ntpd.c b/networking/ntpd.c
index 2eec99f..59607ed 100644
--- a/networking/ntpd.c
+++ b/networking/ntpd.c
@@ -1784,7 +1784,7 @@ recv_and_process_peer_pkt(peer_t *p)
 	prev_delay = p->p_raw_delay;
 	p->p_raw_delay = delay;
 	if (p->reachable_bits && delay > prev_delay * BAD_DELAY_GROWTH) {
-		bb_error_msg("reply from %s: delay %f is too high, ignoring", p->p_dotted, p->lastpkt_delay);
+		bb_error_msg("reply from %s: delay %f is too high, ignoring", p->p_dotted, delay);
 		goto pick_normal_interval;
 	}
 


More information about the busybox-cvs mailing list