From: Miroslav Lichvar Date: Thu, 29 Jan 2015 11:49:02 +0000 (+0100) Subject: ntp: fix maxdelayratio test X-Git-Tag: 2.0-pre2~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fad97e12da1ab12fb72b15febf4d5472824dcb17;p=thirdparty%2Fchrony.git ntp: fix maxdelayratio test This was broken in commit 8fbfe55e. --- diff --git a/ntp_core.c b/ntp_core.c index 8781427e..6550f8ca 100644 --- a/ntp_core.c +++ b/ntp_core.c @@ -1243,7 +1243,7 @@ receive_packet(NTP_Packet *message, struct timeval *now, double now_err, NCR_Ins minimum one currently in the stats data register is less than an administrator-defined value */ testB = inst->max_delay_ratio <= 1.0 || - delay / SRC_MinRoundTripDelay(inst->source) > inst->max_delay_ratio; + delay / SRC_MinRoundTripDelay(inst->source) <= inst->max_delay_ratio; /* Test C requires that the ratio of the increase in delay from the minimum one in the stats data register to the standard deviation of the offsets