From 8d0aef2bb6ecc27f628b8d7cb8a7feb5d32f27f5 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 20 Feb 2015 07:07:36 -0600 Subject: Fix some time value changes; mostly changing greater than 1000000000 to greater than or equal to 1000000000. From Juha Niskanen --- nuttx/fs/vfs/fs_poll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nuttx/fs/vfs') diff --git a/nuttx/fs/vfs/fs_poll.c b/nuttx/fs/vfs/fs_poll.c index d968defb6..a471f655f 100644 --- a/nuttx/fs/vfs/fs_poll.c +++ b/nuttx/fs/vfs/fs_poll.c @@ -327,7 +327,7 @@ int poll(FAR struct pollfd *fds, nfds_t nfds, int timeout) abstime.tv_sec += sec; abstime.tv_nsec += nsec; - if (abstime.tv_nsec > NSEC_PER_SEC) + if (abstime.tv_nsec >= NSEC_PER_SEC) { abstime.tv_sec++; abstime.tv_nsec -= NSEC_PER_SEC; -- cgit v1.2.3