Method Calculate
Calculate(SnmpDeltaHelper, ulong, string, double)
Calculates the rate using provided newCounter against previous counters buffered in this SnmpRate64 instance.
public double Calculate(SnmpDeltaHelper deltaHelper, ulong newCounter, string rowKey = null, double faultyReturn = -1)
Parameters
deltaHelperSnmpDeltaHelperAn instance of the SnmpDeltaHelper class which will take care of fetching the delta from DataMiner.
newCounterulongThe latest known counter value.
rowKeystringThe primary key of the table row for which a rate should be calculated.
faultyReturndoubleThe value to be returned in case a correct rate could not be calculated.
Returns
- double
The calculated rate or the value specified in
faultyReturnin case the rate can not be calculated.