Re: [squid-users] different size cache_dir usage question

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Mon, 8 Jul 2002 09:40:30 +0200

On Monday 08 July 2002 00.57, Brian wrote:

> - cur_free = SD->max_size - SD->cur_size;
> + /* Ratio (0 - 65536) of used to max */
> + cur_free = SD->cur_size / ( SD->max_size >> 16 );

This (>>16) is a bit too much.. makes it very inaccurate on smaller
cache sizes.. use double.

Regards
Henrik
Received on Mon Jul 08 2002 - 02:04:42 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:09:11 MST