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:
parent
1d369fb376
commit
f5aac7178e
@ -572,7 +572,7 @@ static int nsh_netinit_monitor(void)
|
||||
|
||||
abstime.tv_sec += reltime.tv_sec;
|
||||
abstime.tv_nsec += reltime.tv_nsec;
|
||||
if (abstime.tv_nsec > 1000000000)
|
||||
if (abstime.tv_nsec >= 1000000000)
|
||||
{
|
||||
abstime.tv_sec++;
|
||||
abstime.tv_nsec -= 1000000000;
|
||||
|
Loading…
Reference in New Issue
Block a user