From 5ba566efb70c1047301f551e8da0fcd0d3030283 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 22 Jun 2001 20:56:52 +0000 Subject: Fixed logic bug in timeout processing spotted by Ying Chen . Jeremy. (This used to be commit 08c168242364bf4d415f49d134e507a7e234611b) --- source3/smbd/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd/process.c') 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. */ -- cgit