On Thu, Sep 04, 2003 at 01:48:56PM -0400, Fruitman, Corey wrote:
> 
> I'm not sure how RRDTool knows if you're using a 64- or 32-bit counter (to 
> determine the rollover), but if you're not polling using SNMPv2, you probably 
> should be.  

A: previous counter value
B: current counter value

C = B - A               /* compute delta */
if (C < 0) {
   C += 2^32            /* select 32-bit counter */
   if (C < 0) {
      C -= 2^32         /* roll back 2^32 increase */
      C += 2^64         /* select 64-bit counter */
   }

HTH
Alex
-- 
http://www.googlism.com/index.htm?ism=alex+van+den+bogaerdt&type=1

--
Unsubscribe mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

Reply via email to