summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-06-22 20:57:24 +0000
committerJeremy Allison <jra@samba.org>2001-06-22 20:57:24 +0000
commit73a08e34b6a7919c33a301b6069c10f3eba27e0e (patch)
tree1b2e2a3a116d701fa038c9cce6e5edec64e2a02c
parent511a4913d8c265f7f4c6634b1806c683f29615bf (diff)
downloadsamba-73a08e34b6a7919c33a301b6069c10f3eba27e0e.tar.gz
samba-73a08e34b6a7919c33a301b6069c10f3eba27e0e.tar.xz
samba-73a08e34b6a7919c33a301b6069c10f3eba27e0e.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 edd4ee53e7e..b1b0066fd56 100644
--- a/source/smbd/process.c
+++ b/source/smbd/process.c
@@ -1256,7 +1256,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. */