diff --git a/src/Linux/hsflowconfig.c b/src/Linux/hsflowconfig.c index 77d3e40..c7717eb 100644 --- a/src/Linux/hsflowconfig.c +++ b/src/Linux/hsflowconfig.c @@ -839,6 +839,8 @@ extern "C" { // samlping.bps_ratio=0 turns off the behavior, falling back on global default if(bpsRatio > 0) { sampling_n = adaptor->ifSpeed / bpsRatio; + if(sampling_n == 0) + sampling_n = 1; method = HSP_BPS_RATIO; } }