From 2fd5119c7d9e33d961e6cfac7f4d9670711424cb Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sat, 8 Dec 2012 22:42:55 +0000 Subject: 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 --- common/tio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common') 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 -- cgit v1.2.3