From c70dcb111db5f332c2605825f486fafd092d46fb Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 26 Feb 2009 13:09:42 +0100 Subject: [PATCH] Burst length must be at least 1. --- mrate.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mrate.c b/mrate.c index 59ba8c9..810c11c 100644 --- a/mrate.c +++ b/mrate.c @@ -148,6 +148,8 @@ main(int argc, char **argv) tbf_burst = atof(argv[optind+2]); else tbf_burst = 2*tbf_rate; + if (tbf_burst < 1) + tbf_burst = 1; verb(2, "TBF setup: rate=%f burst=%f", tbf_rate, tbf_burst); db_open(); -- 2.39.5