From: Martin Mares Date: Thu, 26 Feb 2009 12:09:42 +0000 (+0100) Subject: Burst length must be at least 1. X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=c70dcb111db5f332c2605825f486fafd092d46fb;p=maildups.git Burst length must be at least 1. --- 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();