From 77a4b251130b8c187ae89f5d62160ad5cfcb6d14 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 11 Mar 2007 18:32:26 +0000 Subject: r21785: Avoid an unnecessary gettimeofday() call Volker (This used to be commit a0af6ff736077725cc7d31d9cdecd024fc7e17a1) --- source3/lib/smbldap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/lib/smbldap.c') diff --git a/source3/lib/smbldap.c b/source3/lib/smbldap.c index 5b9ec1d55b..cffc9389d7 100644 --- a/source3/lib/smbldap.c +++ b/source3/lib/smbldap.c @@ -1579,7 +1579,7 @@ static void smbldap_idle_fn(struct event_context *event_ctx, state->idle_event = event_add_timed( event_ctx, NULL, - timeval_current_ofs(SMBLDAP_IDLE_TIME, 0), + timeval_add(now, SMBLDAP_IDLE_TIME, 0), "smbldap_idle_fn", smbldap_idle_fn, private_data); return; -- cgit