X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drl%2Fsamplehold.h;h=fbd8d3d55b66f31b80df93ac63bf386df23b8d08;hb=266bcb55dbeb328bc583f3b712e7ab90d7ff004e;hp=f96fa26a85f546b02fd30a0d179f088895d73dd6;hpb=f83340496f632165030cc92cd98408a87082f6b1;p=distributedratelimiting.git diff --git a/drl/samplehold.h b/drl/samplehold.h index f96fa26..fbd8d3d 100644 --- a/drl/samplehold.h +++ b/drl/samplehold.h @@ -30,8 +30,13 @@ #define RANDOM_GRANULARITY (1000) +/* For simple S&H testing. */ #define SAMPLEHOLD_PERCENTAGE (5) -#define SAMPLEHOLD_OVERFACTOR (10) +#define SAMPLEHOLD_OVERFACTOR (1.25) + +//#define SAMPLEHOLD_PERCENTAGE (5) +//#define SAMPLEHOLD_OVERFACTOR (10) +#define SAMPLEHOLD_BONUS_FACTOR (1.05) /** In-table representation of a flow that has been sampled. */ typedef struct sampled_flow {