ntp: add assertion to get_seperation()

This commit is contained in:
Miroslav Lichvar 2018-08-08 15:56:12 +02:00
parent dcce79fdbe
commit 8aa4ae027b

View file

@ -899,6 +899,8 @@ get_separation(int poll)
{
double separation;
assert(poll >= MIN_POLL && poll <= MAX_POLL);
/* Allow up to 8 sources using the same short interval to not be limited
by the separation */
separation = UTI_Log2ToDouble(poll - 3);