From a0af6ff736077725cc7d31d9cdecd024fc7e17a1 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 11 Mar 2007 18:32:26 +0000 Subject: [PATCH] r21785: Avoid an unnecessary gettimeofday() call Volker --- source/lib/smbldap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/lib/smbldap.c b/source/lib/smbldap.c index 5b9ec1d55bb..cffc9389d7d 100644 --- a/source/lib/smbldap.c +++ b/source/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; -- 2.47.2