From: glenn <> Date: Wed, 18 Nov 1998 07:29:26 +0000 (+0000) Subject: Addtions to the MIB X-Git-Tag: SQUID_3_0_PRE1~2514 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=00b7a8b6c9abb58023f94ebf7aad09d045878b9b;p=thirdparty%2Fsquid.git Addtions to the MIB --- diff --git a/ChangeLog b/ChangeLog index 83e9cdebe7..267062b584 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,8 +3,12 @@ Changes to Squid-2.2 (): - Removed all SNMP specific ACL code SNMP now uses generic squid ACL's - Removed view-based access crontrol - - Cleaned up and simplified squid.conf + - Cleaned up and simplified SNMP section of squid.conf - Changed the SNMP code to use a tree stucture. + - Added objects to MIB: + Request Hit Ratio's + Byte Hit Ratio's + Number of Clients - Added our own assert() macro so we can use debug() instead of printing to stderr. - Added eventFreeMemory(). diff --git a/src/snmp_agent.cc b/src/snmp_agent.cc index b81c33dc81..1b16352919 100644 --- a/src/snmp_agent.cc +++ b/src/snmp_agent.cc @@ -1,6 +1,6 @@ /* - * $Id: snmp_agent.cc,v 1.60 1998/11/18 00:16:39 glenn Exp $ + * $Id: snmp_agent.cc,v 1.61 1998/11/18 00:29:27 glenn Exp $ * * DEBUG: section 49 SNMP Interface * AUTHOR: Kostas Anagnostakis @@ -473,10 +473,10 @@ snmp_prfProtoFn(variable_list * Var, snint * ErrP) x = statHistDeltaMedian(&l->dns.svc_time, &f->dns.svc_time); break; case PERF_MEDIAN_RHR: - x = statRequestHitRatio(minutes) * 100; + x = statRequestHitRatio(minutes); break; case PERF_MEDIAN_BHR: - x = statByteHitRatio(minutes) * 100; + x = statByteHitRatio(minutes); break; default: *ErrP = SNMP_ERR_NOSUCHNAME;