Hi, I am using squid 2.4 stable. When I am reading the source codes, I always run in trouble.
Because I do not know the exact meaning of thre variables of structures.
For example, in file store_heap_replacement.c, line 108
heap_key
HeapKeyGen_StoreEntry_GDSF(void *entry, double age)
{
StoreEntry *e = entry;
heap_key key;
double size = e->swap_file_sz ? (double) e->swap_file_sz : 1.0;
double tie = (e->lastref > 1) ? (1.0 / e->lastref) : 1.0;
key = age + ((double) e->refcount / size) - tie;
debug(81, 3) ("HeapKeyGen_StoreEntry_GDSF: %s size=%f refcnt=%ld lastref=%ld age=%f
tie=%f -> %f\n",
storeKeyText(e->hash.key), size, e->refcount, e->lastref, age, tie, key);
if (e->mem_obj && e->mem_obj->url)
debug(81, 3) ("HeapKeyGen_StoreEntry_GDSF: url=%s\n",
e->mem_obj->url);
return key;
}
What is the exact meaning of "age"? Can anyone give me a brief explanation?
Where can iI find the explanation of the variables of structures?
Best regards,
George, Ma
Received on Sat Apr 06 2002 - 23:27:33 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:14:58 MST