mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 17:35:06 -05:00
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:
8
client.c
8
client.c
@@ -2189,10 +2189,10 @@ process_cmd_sources(char *line)
|
||||
}
|
||||
|
||||
switch (ntohs(reply.data.source_data.state)) {
|
||||
case RPY_SD_ST_SYNC:
|
||||
case RPY_SD_ST_SELECTED:
|
||||
state_ch = '*';
|
||||
break;
|
||||
case RPY_SD_ST_UNREACH:
|
||||
case RPY_SD_ST_NONSELECTABLE:
|
||||
state_ch = '?';
|
||||
break;
|
||||
case RPY_SD_ST_FALSETICKER:
|
||||
@@ -2201,10 +2201,10 @@ process_cmd_sources(char *line)
|
||||
case RPY_SD_ST_JITTERY:
|
||||
state_ch = '~';
|
||||
break;
|
||||
case RPY_SD_ST_CANDIDATE:
|
||||
case RPY_SD_ST_UNSELECTED:
|
||||
state_ch = '+';
|
||||
break;
|
||||
case RPY_SD_ST_OUTLIER:
|
||||
case RPY_SD_ST_SELECTABLE:
|
||||
state_ch = '-';
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user