In burst count only accumulated samples as good

This commit is contained in:
Miroslav Lichvar 2013-06-03 13:05:26 +02:00
parent afceb9d24e
commit 5079f6bbff

View file

@ -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;
}