diff options
author | Andrew Tridgell <tridge@samba.org> | 1996-10-07 01:56:21 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1996-10-07 01:56:21 +0000 |
commit | 8781e4d787763a6b50d7b3819b33ace208ff7784 (patch) | |
tree | e9266e994f66c9ee0de0544d63359aa2ffb09a1a /source3/namedbsubnet.c | |
parent | 21cdd72c33960c4da3607b488e984631487197e1 (diff) | |
download | samba-8781e4d787763a6b50d7b3819b33ace208ff7784.tar.gz samba-8781e4d787763a6b50d7b3819b33ace208ff7784.tar.bz2 samba-8781e4d787763a6b50d7b3819b33ace208ff7784.zip |
- 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)
Diffstat (limited to 'source3/namedbsubnet.c')
-rw-r--r-- | source3/namedbsubnet.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/namedbsubnet.c b/source3/namedbsubnet.c index 0bad79246a..16eeb6322e 100644 --- a/source3/namedbsubnet.c +++ b/source3/namedbsubnet.c @@ -252,14 +252,13 @@ struct subnet_record *add_subnet_entry(struct in_addr bcast_ip, /******************************************************************* write out browse.dat ******************************************************************/ -void write_browse_list(void) +void write_browse_list(time_t t) { struct subnet_record *d; pstring fname,fnamenew; FILE *f; static time_t lasttime = 0; - time_t t = time(NULL); if (!lasttime) lasttime = t; if (!updatedlists || t - lasttime < 5) return; |