sön 2006-11-12 klockan 13:30 +0100 skrev Joel CARNAT: > so I was wondering if I was not mistaking thinking: > SQUID-MIB::cacheHttpHits = LOG/TCP_HIT + LOG/TCP_MEM_HIT Yes, and a bit more.. int isTcpHit(log_type code) { /* this should be a bitmap for better optimization */ if (code == LOG_TCP_HIT) return 1; if (code == LOG_TCP_IMS_HIT) return 1; if (code == LOG_TCP_REFRESH_FAIL_HIT) return 1; if (code == LOG_TCP_REFRESH_HIT) return 1; if (code == LOG_TCP_NEGATIVE_HIT) return 1; if (code == LOG_TCP_MEM_HIT) return 1; if (code == LOG_TCP_OFFLINE_HIT) return 1; return 0; } It's a bit of an approximation as there is no exact hit/miss semantics in HTTP caches. The cache validations lives somewhere between hit/miss. Regards Henrik
Attachment:
signature.asc
Description: Detta =?ISO-8859-1?Q?=E4r?= en digitalt signerad meddelandedel