summaryrefslogtreecommitdiffstats
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
commit08c168242364bf4d415f49d134e507a7e234611b (patch)
tree80a8689b5a5433c41c7bac4aa03d74d3a1a2ce7a
parent5cbb2106735ad0533198a83d62541cabd7beed20 (diff)
downloadsamba-08c168242364bf4d415f49d134e507a7e234611b.tar.gz
samba-08c168242364bf4d415f49d134e507a7e234611b.tar.xz
samba-08c168242364bf4d415f49d134e507a7e234611b.zip
Fixed logic bug in timeout processing spotted by Ying Chen <ying@almaden.ibm.com>.
Jeremy.
-rw-r--r--source/smbd/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/process.c b/source/smbd/process.c
index 72e0fc311aa..dae99ec80e8 100644
--- a/source/smbd/process.c
+++ b/source/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. */