r21785: Avoid an unnecessary gettimeofday() call
authorVolker Lendecke <vlendec@samba.org>
Sun, 11 Mar 2007 18:32:26 +0000 (18:32 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:18:34 +0000 (12:18 -0500)
Volker

source/lib/smbldap.c

index 5b9ec1d55bb0751f61ad61cab0566a31cb8fafb7..cffc9389d7da3c13b84acbe1558ab9aa4da3b7f0 100644 (file)
@@ -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;