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