summaryrefslogtreecommitdiff
path: root/nuttx/fs/vfs/fs_poll.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2015-02-20 07:07:36 -0600
committerGregory Nutt <gnutt@nuttx.org>2015-02-20 07:07:36 -0600
commit8d0aef2bb6ecc27f628b8d7cb8a7feb5d32f27f5 (patch)
tree452731d08eef8191e285e175b31ce1d29aa2f0e6 /nuttx/fs/vfs/fs_poll.c
parent07b5b43b323334b02fab26754dc6e0cdd3154631 (diff)
downloadpx4-nuttx-8d0aef2bb6ecc27f628b8d7cb8a7feb5d32f27f5.tar.gz
px4-nuttx-8d0aef2bb6ecc27f628b8d7cb8a7feb5d32f27f5.tar.bz2
px4-nuttx-8d0aef2bb6ecc27f628b8d7cb8a7feb5d32f27f5.zip
Fix some time value changes; mostly changing greater than 1000000000 to greater than or equal to 1000000000. From Juha Niskanen
Diffstat (limited to 'nuttx/fs/vfs/fs_poll.c')
-rw-r--r--nuttx/fs/vfs/fs_poll.c2
1 files changed, 1 insertions, 1 deletions
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;