From: Volker Lendecke Date: Sun, 11 Mar 2007 18:32:26 +0000 (+0000) Subject: r21785: Avoid an unnecessary gettimeofday() call X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~958 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0af6ff736077725cc7d31d9cdecd024fc7e17a1;p=thirdparty%2Fsamba.git r21785: Avoid an unnecessary gettimeofday() call Volker --- 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;