X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drl%2Fsamplehold.h;h=fbd8d3d55b66f31b80df93ac63bf386df23b8d08;hb=8675c0b77ad3e361f4255ce61881a79061c5238d;hp=6c992fdc35de2b34f9268b1f7b9745f9c83973a3;hpb=762f4e00371f2a8e01a6cf60867f837b90460a60;p=distributedratelimiting.git diff --git a/drl/samplehold.h b/drl/samplehold.h index 6c992fd..fbd8d3d 100644 --- a/drl/samplehold.h +++ b/drl/samplehold.h @@ -30,10 +30,12 @@ #define RANDOM_GRANULARITY (1000) -// FIXME: In reality, you probably don't want this higher than 5 +/* For simple S&H testing. */ +#define SAMPLEHOLD_PERCENTAGE (5) +#define SAMPLEHOLD_OVERFACTOR (1.25) + //#define SAMPLEHOLD_PERCENTAGE (5) -#define SAMPLEHOLD_PERCENTAGE (10) -#define SAMPLEHOLD_OVERFACTOR (10) +//#define SAMPLEHOLD_OVERFACTOR (10) #define SAMPLEHOLD_BONUS_FACTOR (1.05) /** In-table representation of a flow that has been sampled. */