Fixes & tweaks for sample and hold accounting.
[distributedratelimiting.git] / drl / samplehold.h
index f96fa26..6c992fd 100644 (file)
 
 #define RANDOM_GRANULARITY (1000)
 
-#define SAMPLEHOLD_PERCENTAGE (5)
+// FIXME: In reality, you probably don't want this higher than 5
+//#define SAMPLEHOLD_PERCENTAGE (5)
+#define SAMPLEHOLD_PERCENTAGE (10)
 #define SAMPLEHOLD_OVERFACTOR (10)
+#define SAMPLEHOLD_BONUS_FACTOR (1.05)
 
 /** In-table representation of a flow that has been sampled. */
 typedef struct sampled_flow {