Skip to content

Commit

Permalink
Make RateEWMA 64-bit by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaibrodschi authored and tbarbette committed Oct 25, 2024
1 parent d5e40b9 commit 887a6db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion elements/standard/bandwidthmeter.hh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ CLICK_DECLS

class BandwidthMeter : public Element { protected:

RateEWMAX<RateEWMAXParameters<4, 10, uint64_t, int64_t>> _rate;
RateEWMA _rate;

uint64_t _meter1;
uint64_t *_meters;
Expand Down
4 changes: 2 additions & 2 deletions include/click/ewma.hh
Original file line number Diff line number Diff line change
Expand Up @@ -490,9 +490,9 @@ class RateEWMAXParameters : public FixedEWMAXParameters<STABILITY, SCALE, T, U>
};

/** @brief A RateEWMAX with stability shift 4 (alpha 1/16), scaling factor 10
* (10 bits of fraction), one rate, and underlying type <code>unsigned</code>
* (10 bits of fraction), one rate, and underlying type <code>uint64_t</code>
* that measures epochs in jiffies. */
typedef RateEWMAX<RateEWMAXParameters<4, 10> > RateEWMA;
typedef RateEWMAX<RateEWMAXParameters<4, 10, uint64_t, int64_t> > RateEWMA;


template <typename P>
Expand Down

0 comments on commit 887a6db

Please sign in to comment.