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_OUTLYER} state;
+ enum {RPT_SYNC, RPT_UNREACH, RPT_FALSETICKER, RPT_JITTERY, RPT_CANDIDATE, RPT_OUTLIER} state;
enum {RPT_NORMAL, RPT_PREFER, RPT_NOSELECT} sel_option;
int reachability;
/* Flag indicating that only few samples were accumulated so far */
int beginning;
- /* Updates left before resetting outlyer status */
- int outlyer;
+ /* Updates left before allowing combining */
+ int outlier;
/* Flag indicating the status of the source */
SRC_Status status;
/* Score needed to replace the currently selected source */
#define SCORE_LIMIT 10.0
-/* Number of updates needed to reset the outlyer status */
-#define OUTLYER_PENALTY 32
+/* Number of updates needed to reset the outlier status */
+#define OUTLIER_PENALTY 32
static double reselect_distance;
static double stratum_weight;
result->selectable = 0;
result->reachability = 0;
result->beginning = 1;
- result->outlyer = 0;
+ result->outlier = 0;
result->status = SRC_BAD_STATS;
result->type = type;
result->sel_score = 1.0;
/* Don't include this source if its distance is longer than the distance of
the selected source multiplied by the limit, their estimated frequencies
- are not close, or it was recently marked as outlyer */
+ are not close, or it was recently marked as outlier */
if (index != selected_source_index &&
(sources[index]->sel_info.root_distance > combine_limit *
(reselect_distance + sources[selected_source_index]->sel_info.root_distance) ||
fabs(*frequency - src_frequency) >
combine_limit * (*skew + src_skew + LCL_GetMaxClockError()))) {
- sources[index]->outlyer = !sources[index]->beginning ? OUTLYER_PENALTY : 1;
+ sources[index]->outlier = !sources[index]->beginning ? OUTLIER_PENALTY : 1;
}
- if (sources[index]->outlyer) {
- sources[index]->outlyer--;
+ if (sources[index]->outlier) {
+ sources[index]->outlier--;
continue;
}
/* Reset score for non-selectable sources */
if (sources[i]->status != SRC_SELECTABLE) {
sources[i]->sel_score = 1.0;
- sources[i]->outlyer = OUTLYER_PENALTY;
+ sources[i]->outlier = OUTLIER_PENALTY;
continue;
}
/* New source has been selected, reset all scores */
for (i=0; i < n_sources; i++) {
sources[i]->sel_score = 1.0;
- sources[i]->outlyer = 0;
+ sources[i]->outlier = 0;
}
}
report->state = RPT_FALSETICKER;
break;
case SRC_SELECTABLE:
- report->state = src->outlyer ? RPT_OUTLYER : RPT_CANDIDATE;
+ report->state = src->outlier ? RPT_OUTLIER : RPT_CANDIDATE;
break;
default:
assert(0);