mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 00:45:07 -05:00
In burst count only accumulated samples as good
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user