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:
Gregory Nutt 2015-02-20 07:07:36 -06:00
parent 1d369fb376
commit f5aac7178e

View File

@ -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;