cmdmon: rename status constants

Change the naming of reported selection status in the sources report to
better match the internal status.
This commit is contained in:
Miroslav Lichvar
2020-09-08 11:17:48 +02:00
parent c74d6e458d
commit 83ea9fe284
5 changed files with 29 additions and 22 deletions

View File

@@ -36,7 +36,14 @@ typedef struct {
int stratum;
int poll;
enum {RPT_NTP_CLIENT, RPT_NTP_PEER, RPT_LOCAL_REFERENCE} mode;
enum {RPT_SYNC, RPT_UNREACH, RPT_FALSETICKER, RPT_JITTERY, RPT_CANDIDATE, RPT_OUTLIER} state;
enum {
RPT_NONSELECTABLE,
RPT_FALSETICKER,
RPT_JITTERY,
RPT_SELECTABLE,
RPT_UNSELECTED,
RPT_SELECTED,
} state;
int reachability;
unsigned long latest_meas_ago; /* seconds */