mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Fix some time value changes; mostly changing greater than 1000000000 to greater than or equal to 1000000000. From Juha Niskanen
This commit is contained in:
@@ -187,7 +187,7 @@ int arp_wait(FAR struct arp_notify_s *notify, FAR struct timespec *timeout)
|
||||
|
||||
abstime.tv_sec += timeout->tv_sec;
|
||||
abstime.tv_nsec += timeout->tv_nsec;
|
||||
if (abstime.tv_nsec > 1000000000)
|
||||
if (abstime.tv_nsec >= 1000000000)
|
||||
{
|
||||
abstime.tv_sec++;
|
||||
abstime.tv_nsec -= 1000000000;
|
||||
|
||||
Reference in New Issue
Block a user