limits: Reverting back renaming of SimpleLimits strategy
diff --git a/utils/ndn-limits-rate.cc b/utils/ndn-limits-rate.cc
index 1bf0af4..27e2f0d 100644
--- a/utils/ndn-limits-rate.cc
+++ b/utils/ndn-limits-rate.cc
@@ -64,6 +64,18 @@
}
}
+void
+LimitsRate::SetLimits (double rate, double delay)
+{
+ super::SetLimits (rate, delay);
+
+ // maximum allowed burst
+ m_bucketMax = GetMaxRate () * GetMaxDelay ();
+
+ // amount of packets allowed every second (leak rate)
+ m_bucketLeak = GetMaxRate ();
+}
+
void
LimitsRate::UpdateCurrentLimit (double limit)
diff --git a/utils/ndn-limits-rate.h b/utils/ndn-limits-rate.h
index 15344c6..7da0f1a 100644
--- a/utils/ndn-limits-rate.h
+++ b/utils/ndn-limits-rate.h
@@ -54,16 +54,7 @@
~LimitsRate () { }
virtual void
- SetLimits (double rate, double delay)
- {
- super::SetLimits (rate, delay);
-
- // maximum allowed burst
- m_bucketMax = GetMaxRate () * GetMaxDelay ();
-
- // amount of packets allowed every second (leak rate)
- m_bucketLeak = GetMaxRate ();
- }
+ SetLimits (double rate, double delay);
/**
* @brief Check if Interest limit is reached (token bucket is not empty)
@@ -84,12 +75,13 @@
ReturnLimit ();
/**
- * @brief Update current leak ratio and maximum burst
+ * @brief Update normalized amount that should be leaked every second (token bucket leak rate) and leak rate
*/
virtual void
UpdateCurrentLimit (double limit);
/**
+ * @brief Get normalized amount that should be leaked every second (token bucket leak rate)
*/
virtual double
GetCurrentLimit () const