From: Miroslav Lichvar Date: Mon, 24 Jan 2011 16:13:28 +0000 (+0100) Subject: Print sources with bad stats in client as unreachable X-Git-Tag: 1.25-pre1~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2e74beebbf276c525802d346bd5204c1fb110166;p=thirdparty%2Fchrony.git Print sources with bad stats in client as unreachable --- diff --git a/sources.c b/sources.c index 5b20a713..6c523fde 100644 --- a/sources.c +++ b/sources.c @@ -1081,15 +1081,19 @@ SRC_ReportSource(int index, RPT_SourceReport *report, struct timeval *now) case SRC_JITTERY: report->state = RPT_JITTERY; break; + case SRC_BAD_STATS: case SRC_UNREACHABLE: report->state = RPT_UNREACH; break; case SRC_FALSETICKER: report->state = RPT_FALSETICKER; break; - default: + case SRC_SELECTABLE: report->state = RPT_OTHER; break; + default: + assert(0); + break; } /* Call stats module to fill out estimates */ SST_DoSourceReport(src->stats, report, now);