ntp: add assertion to get_seperation()
This commit is contained in:
parent
dcce79fdbe
commit
8aa4ae027b
1 changed files with 2 additions and 0 deletions
|
@ -899,6 +899,8 @@ get_separation(int poll)
|
||||||
{
|
{
|
||||||
double separation;
|
double separation;
|
||||||
|
|
||||||
|
assert(poll >= MIN_POLL && poll <= MAX_POLL);
|
||||||
|
|
||||||
/* Allow up to 8 sources using the same short interval to not be limited
|
/* Allow up to 8 sources using the same short interval to not be limited
|
||||||
by the separation */
|
by the separation */
|
||||||
separation = UTI_Log2ToDouble(poll - 3);
|
separation = UTI_Log2ToDouble(poll - 3);
|
||||||
|
|
Loading…
Reference in a new issue