void
SRC_SelectSource(SRC_Instance updated_inst)
{
- int i, j, index, old_selected_index, sel_prefer;
+ int i, j, index, sel_prefer;
struct timeval now, ref_time;
double src_offset, src_offset_sd, src_frequency, src_skew;
double src_root_delay, src_root_dispersion;
double max_score;
NTP_Leap leap_status = LEAP_Normal;
- old_selected_index = selected_source_index;
if (updated_inst)
updated_inst->updates++;
if (selected_source_index != INVALID_SOURCE) {
log_selection_message("Can't synchronise: no sources", NULL);
selected_source_index = INVALID_SOURCE;
- REF_SetUnsynchronised();
}
return;
}
if (selected_source_index != INVALID_SOURCE) {
log_selection_message("Can't synchronise: no majority", NULL);
+ REF_SetUnsynchronised();
}
selected_source_index = INVALID_SOURCE;
}
selected_source_index = INVALID_SOURCE;
}
-
- if (selected_source_index == INVALID_SOURCE &&
- selected_source_index != old_selected_index) {
- REF_SetUnsynchronised();
- }
}
/* ================================================== */