Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
phc2sys: Fix lower bound value of update_rate
Following command produces unexpected update rate. # phc2sys -s eth0 -q -m -O0 -R1.0842021724855044e-19 This is caused by wrong validation of phc_interval related to significant digits of double precision and phc_interval_tp.tv_sec overflow. To avoid these unwanted trouble, this patch limits lower bound of phc_rate to 1e-9. There is no profound meaning in the lower bound value. I just think it's enough to actual use and it doesn't cause phc_interval_tp.tv_sec overflow in not only 64bit environment but also 32bit environment. Thereby, messy validation of phc_interval is no longer needed. Signed-off-by: Ken ICHIKAWA <[email protected]>
- Loading branch information