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

@@ -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: