Changeset 80d23bb


Ignore:
Timestamp:
02/21/14 10:47:23 (7 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
755855a
Parents:
47e927a
Message:

Fix bad smoothing parameter in rate-dir example

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/rate/rate-dir.c

    r0f42351 r80d23bb  
    7676
    7777
    78 static int32_t smoothed(int32_t smoothed, int32_t instant, int32_t alpha) {
     78static int32_t smoothed(int32_t smoothed, int32_t instant, double alpha) {
    7979        return alpha * smoothed + (1-alpha) * instant;
    8080}
Note: See TracChangeset for help on using the changeset viewer.