From 887a6db8a6af80ac85dbc3c04b7b64dbd0724898 Mon Sep 17 00:00:00 2001 From: Mihai Brodschi Date: Fri, 25 Oct 2024 12:04:30 +0300 Subject: [PATCH] Make RateEWMA 64-bit by default --- elements/standard/bandwidthmeter.hh | 2 +- include/click/ewma.hh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/elements/standard/bandwidthmeter.hh b/elements/standard/bandwidthmeter.hh index 8cc879dcfe..5e0bd91ac1 100644 --- a/elements/standard/bandwidthmeter.hh +++ b/elements/standard/bandwidthmeter.hh @@ -37,7 +37,7 @@ CLICK_DECLS class BandwidthMeter : public Element { protected: - RateEWMAX> _rate; + RateEWMA _rate; uint64_t _meter1; uint64_t *_meters; diff --git a/include/click/ewma.hh b/include/click/ewma.hh index e9dada4253..d676076a9c 100644 --- a/include/click/ewma.hh +++ b/include/click/ewma.hh @@ -490,9 +490,9 @@ class RateEWMAXParameters : public FixedEWMAXParameters }; /** @brief A RateEWMAX with stability shift 4 (alpha 1/16), scaling factor 10 - * (10 bits of fraction), one rate, and underlying type unsigned + * (10 bits of fraction), one rate, and underlying type uint64_t * that measures epochs in jiffies. */ -typedef RateEWMAX > RateEWMA; +typedef RateEWMAX > RateEWMA; template