lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1848 - nss-pam-ldapd/common

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd commit: r1848 - nss-pam-ldapd/common



Author: arthur
Date: Sat Dec  8 23:42:55 2012
New Revision: 1848
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1848&view=revision

Log:
update microseconds when setting deadline, not seconds (thanks Julien Cristau)

Modified:
   nss-pam-ldapd/common/tio.c

Modified: nss-pam-ldapd/common/tio.c
==============================================================================
--- nss-pam-ldapd/common/tio.c  Sat Dec  8 23:34:02 2012        (r1847)
+++ nss-pam-ldapd/common/tio.c  Sat Dec  8 23:42:55 2012        (r1848)
@@ -86,7 +86,7 @@
     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
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/