diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2012-12-08 23:42:55 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2012-12-08 23:42:55 +0100 |
commit | 2fd5119c7d9e33d961e6cfac7f4d9670711424cb (patch) | |
tree | da2cee98e9244ece35c62e163e9a663eecaa8566 /common | |
parent | 00293852302ff6b0a3f2cb7ca4cf042cb9da8fe8 (diff) |
update microseconds when setting deadline, not seconds (thanks Julien Cristau)
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1848 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'common')
-rw-r--r-- | common/tio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/tio.c b/common/tio.c index ecb279f..4012364 100644 --- a/common/tio.c +++ b/common/tio.c @@ -86,7 +86,7 @@ static inline void tio_get_deadline(struct timeval *deadline,int timeout) return; } deadline->tv_sec+=timeout/1000; - deadline->tv_sec+=(timeout%1000)*1000; + deadline->tv_usec+=(timeout%1000)*1000; } /* update the timeout to the value that is remaining before deadline |