httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harrie Hazewinkel <har...@covalent.net>
Subject Re: [PATCH] easy scoreboard access
Date Thu, 28 Jun 2001 15:37:19 GMT
"Paul J. Reder" wrote:
> 
> Isn't this logic backwards? Have I just not had enough sugar yet this morning?

Hmm, yeah, maybe I did not had enough yesterday.
I wanted to make it the OR instead of AND, since that could potentially
be faster evaulated (if a compiler can handle it).

I had intended:
> +    if (((x < 0) || (hard_server_limit < x)) ||
> +        ((y < 0) || (hard_thread_limit < y))) {
> +        return(NULL); /* Out of range */
> +    }
> +    return(&ap_scoreboard_image->servers[x][y]);

I wil redo the patch.


Harrie
-- 
address: Covalent Technologies, 645 Howard St, San Francisco, CA - 94105
phone: +1-415-536-5221                               fax:+1-415-536-5210
personal website: http://www.lisanza.net/

Mime
View raw message