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/nameresp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/nameresp.c') diff --git a/source3/nameresp.c b/source3/nameresp.c index 7fcb41e79f..2a8c5e88b0 100644 --- a/source3/nameresp.c +++ b/source3/nameresp.c @@ -174,7 +174,7 @@ static void dead_netbios_entry(struct subnet_record *d, see name_query() and name_status() for suggested implementation. ******************************************************************/ -void expire_netbios_response_entries() +void expire_netbios_response_entries(time_t t) { struct subnet_record *d; @@ -186,7 +186,7 @@ void expire_netbios_response_entries() { nextn = n->next; - if (n->repeat_time <= time(NULL)) + if (n->repeat_time <= t) { if (n->repeat_count > 0) { -- cgit