From: Miroslav Lichvar Date: Mon, 3 Jun 2013 11:05:26 +0000 (+0200) Subject: In burst count only accumulated samples as good X-Git-Tag: 1.28-pre1~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5079f6bbff9ae92fa0775516c40da2ce6ca55b54;p=thirdparty%2Fchrony.git In burst count only accumulated samples as good --- diff --git a/ntp_core.c b/ntp_core.c index e9ef711c..760bd59f 100644 --- a/ntp_core.c +++ b/ntp_core.c @@ -1068,7 +1068,7 @@ receive_packet(NTP_Packet *message, struct timeval *now, double now_err, NCR_Ins switch (inst->opmode) { case MD_BURST_WAS_ONLINE: - if (valid_data) { + if (valid_header && good_data) { --inst->burst_good_samples_to_go; } @@ -1078,7 +1078,7 @@ receive_packet(NTP_Packet *message, struct timeval *now, double now_err, NCR_Ins break; case MD_BURST_WAS_OFFLINE: - if (valid_data) { + if (valid_header && good_data) { --inst->burst_good_samples_to_go; }