mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 16:25:06 -05:00
use round() for rounding
Replace casting of values incremented by +0.5/-0.5 with round().
This commit is contained in:
@@ -2604,7 +2604,7 @@ broadcast_timeout(void *arg)
|
||||
int poll;
|
||||
|
||||
destination = ARR_GetElement(broadcasts, (long)arg);
|
||||
poll = log(destination->interval) / log(2.0) + 0.5;
|
||||
poll = round(log(destination->interval) / log(2.0));
|
||||
|
||||
UTI_ZeroNtp64(&orig_ts);
|
||||
zero_local_timestamp(&recv_ts);
|
||||
|
||||
Reference in New Issue
Block a user