#define FLOW_DELETED 1
#define FLOW_USED 2
-#define RANDOM_GRANULARITY 1000
+#define RANDOM_GRANULARITY (1000)
+
+/* For simple S&H testing. */
+#define SAMPLEHOLD_PERCENTAGE (5)
+#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 {