[bwm-tools-devel] COMMIT - r7 - trunk/lib
Brought to you by:
nkukard
From: <bwm...@li...> - 2004-12-28 15:17:16
|
Author: nkukard Date: 2004-12-28 17:13:50 +0200 (Tue, 28 Dec 2004) New Revision: 7 Modified: trunk/lib/xmlConf.c Log: * Added check in config that burst-rate is greater than max-rate Modified: trunk/lib/xmlConf.c =================================================================== --- trunk/lib/xmlConf.c 2004-12-28 15:09:01 UTC (rev 6) +++ trunk/lib/xmlConf.c 2004-12-28 15:13:50 UTC (rev 7) @@ -1313,6 +1313,11 @@ p = g_hash_table_lookup(tagProperties,"burst-rate"); burstRate = p ? atol(p) : -1; + if (burstRate < maxRate && burstRate > 0) + { + fprintf(stderr,"ERROR: %s - Tag \"burst-rate\" cannot be less than max-rate\n",flowName); + burstRate = -1; + } p = g_hash_table_lookup(tagProperties,"nfmark"); nfmark = p ? atol(p) : -1; |