tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mladen Turk <mt...@apache.org>
Subject Re: svn commit: r416897 - in /tomcat/connectors/trunk/jk/native/common: jk_ajp_common.c jk_ajp_common.h jk_lb_worker.c jk_service.h jk_worker.c
Date Mon, 26 Jun 2006 19:03:41 GMT
Rainer Jung wrote:
>>  
>> -static int JK_METHOD maintain_workers(jk_worker_t *p, jk_logger_t *l)
>> +static int JK_METHOD maintain_workers(jk_worker_t *p, time_t now, 
>> jk_logger_t *l)
>>  {
>>      unsigned int i = 0;
>>      jk_uint64_t curmax = 0;
>>      long delta;
>> -    time_t now = time(NULL);
>> -    JK_TRACE_ENTER(l);
>> +    now = time(NULL);
>>   
> Shouldn't we also drop this last line?
>

Yes we should. That was the point of having a single
call for time(NULL). Since its resolution is in seconds,
IMHO we are safe with any CPU > 1 MHz :)

Regards,
Mladen.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message