mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 11:35:08 -05:00
ntp: add assertion to get_seperation()
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user