From 8781e4d787763a6b50d7b3819b33ace208ff7784 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 7 Oct 1996 01:56:21 +0000 Subject: - changed the default nmbd loop timout to 10 seconds (2 seconds was much too short) - got rid of many unnecessary calls to time(NULL) in nmbd. They were causing it to chew too much CPU time when idle. Now we pass a time value in from the top level. (This used to be commit 3cd7303dbc2118db7084a6d8872403d825c52323) --- source3/namebrowse.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3/namebrowse.c') diff --git a/source3/namebrowse.c b/source3/namebrowse.c index b426bc7a15..3bc4f9f82a 100644 --- a/source3/namebrowse.c +++ b/source3/namebrowse.c @@ -190,11 +190,10 @@ static void start_sync_browse_entry(struct browse_cache_record *b) /**************************************************************************** search through browser list for an entry to sync with **************************************************************************/ -void do_browser_lists(void) +void do_browser_lists(time_t t) { struct browse_cache_record *b; static time_t last = 0; - time_t t = time(NULL); if (t-last < 20) return; /* don't do too many of these at once! */ /* XXXX equally this period should not be too long -- cgit