]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Print sources with bad stats in client as unreachable
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 24 Jan 2011 16:13:28 +0000 (17:13 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 25 Jan 2011 16:40:46 +0000 (17:40 +0100)
sources.c

index 5b20a713fcbe223e2eaaeeccf8f56c2d1bd2d637..6c523fde47b89b1dded0aa3f9bd4d772e9bbbfe0 100644 (file)
--- 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);