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)