In burst count only accumulated samples as good
This commit is contained in:
parent
afceb9d24e
commit
5079f6bbff
1 changed files with 2 additions and 2 deletions
|
@ -1068,7 +1068,7 @@ receive_packet(NTP_Packet *message, struct timeval *now, double now_err, NCR_Ins
|
||||||
|
|
||||||
switch (inst->opmode) {
|
switch (inst->opmode) {
|
||||||
case MD_BURST_WAS_ONLINE:
|
case MD_BURST_WAS_ONLINE:
|
||||||
if (valid_data) {
|
if (valid_header && good_data) {
|
||||||
--inst->burst_good_samples_to_go;
|
--inst->burst_good_samples_to_go;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1078,7 +1078,7 @@ receive_packet(NTP_Packet *message, struct timeval *now, double now_err, NCR_Ins
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MD_BURST_WAS_OFFLINE:
|
case MD_BURST_WAS_OFFLINE:
|
||||||
if (valid_data) {
|
if (valid_header && good_data) {
|
||||||
--inst->burst_good_samples_to_go;
|
--inst->burst_good_samples_to_go;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue