summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-06-22 20:56:52 +0000
committerJeremy Allison <jra@samba.org>2001-06-22 20:56:52 +0000
commit5ba566efb70c1047301f551e8da0fcd0d3030283 (patch)
treed4da6920fb82720efeb46c5ba3d114d4cb0b3f0d /source3/smbd
parent17d5d660b5853e64ea0225ce107ed619b2aeb064 (diff)
downloadsamba-5ba566efb70c1047301f551e8da0fcd0d3030283.tar.gz
samba-5ba566efb70c1047301f551e8da0fcd0d3030283.tar.bz2
samba-5ba566efb70c1047301f551e8da0fcd0d3030283.zip
Fixed logic bug in timeout processing spotted by Ying Chen <ying@almaden.ibm.com>.
Jeremy. (This used to be commit 08c168242364bf4d415f49d134e507a7e234611b)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 72e0fc311a..dae99ec80e 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -1254,7 +1254,7 @@ void smbd_process(void)
if ((num_smbs % 200) == 0) {
time_t new_check_time = time(NULL);
- if(last_timeout_processing_time - new_check_time >= (select_timeout/1000)) {
+ if(new_check_time - last_timeout_processing_time >= (select_timeout/1000)) {
if(!timeout_processing( deadtime, &select_timeout, &last_timeout_processing_time))
return;
num_smbs = 0; /* Reset smb counter. */