mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 23:45:07 -05:00
Print sources with bad stats in client as unreachable
This commit is contained in:
@@ -1081,15 +1081,19 @@ SRC_ReportSource(int index, RPT_SourceReport *report, struct timeval *now)
|
|||||||
case SRC_JITTERY:
|
case SRC_JITTERY:
|
||||||
report->state = RPT_JITTERY;
|
report->state = RPT_JITTERY;
|
||||||
break;
|
break;
|
||||||
|
case SRC_BAD_STATS:
|
||||||
case SRC_UNREACHABLE:
|
case SRC_UNREACHABLE:
|
||||||
report->state = RPT_UNREACH;
|
report->state = RPT_UNREACH;
|
||||||
break;
|
break;
|
||||||
case SRC_FALSETICKER:
|
case SRC_FALSETICKER:
|
||||||
report->state = RPT_FALSETICKER;
|
report->state = RPT_FALSETICKER;
|
||||||
break;
|
break;
|
||||||
default:
|
case SRC_SELECTABLE:
|
||||||
report->state = RPT_OTHER;
|
report->state = RPT_OTHER;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
assert(0);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
/* Call stats module to fill out estimates */
|
/* Call stats module to fill out estimates */
|
||||||
SST_DoSourceReport(src->stats, report, now);
|
SST_DoSourceReport(src->stats, report, now);
|
||||||
|
|||||||
Reference in New Issue
Block a user