Ignore reselectdist for refclocks
This commit is contained in:
parent
9cf08fc780
commit
e8fe1dc415
1 changed files with 3 additions and 1 deletions
|
@ -772,8 +772,10 @@ SRC_SelectSource(unsigned long match_addr)
|
|||
continue;
|
||||
}
|
||||
|
||||
distance = sources[i]->sel_info.root_distance + reselect_distance +
|
||||
distance = sources[i]->sel_info.root_distance +
|
||||
(sources[i]->sel_info.stratum - min_stratum) * stratum_weight;
|
||||
if (sources[i]->type == SRC_NTP)
|
||||
distance += reselect_distance;
|
||||
|
||||
if (selected_source_index != INVALID_SOURCE) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue