From: Marcin Siodelski Date: Fri, 25 May 2012 13:27:22 +0000 (+0200) Subject: [1954] Correcting error in -D X-Git-Tag: trac2351_base~226^2~76^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a3f8c40ba785618482a17a3ee2cf8edc65e37d73;p=thirdparty%2Fkea.git [1954] Correcting error in -D --- diff --git a/tests/tools/perfdhcp/command_options.cc b/tests/tools/perfdhcp/command_options.cc index 154a34027c..aa47596d78 100644 --- a/tests/tools/perfdhcp/command_options.cc +++ b/tests/tools/perfdhcp/command_options.cc @@ -104,7 +104,7 @@ CommandOptions::initialize(int argc, char** argv) { char opt = 0; // Subsequent options returned by getopt() std::string drop_arg; // Value of -Dargument size_t percent_loc = 0; // Location of % sign in -D - double drop_percent = 0; // % value (1..100) in -D<%value> + double drop_percent = 0; // % value (1..100) in -D int num_drops = 0; // Max number of drops specified in -D int num_req = 0; // Max number of dropped requests in -n int offset_arg = 0; // Temporary variable holding offset arguments @@ -173,10 +173,10 @@ CommandOptions::initialize(int argc, char** argv) { drop_percent = boost::lexical_cast(drop_arg.substr(0, percent_loc)); } catch (boost::bad_lexical_cast&) { isc_throw(isc::InvalidParameter, - "value of drop percentage: -D<%value> must be 0..100"); + "value of drop percentage: -D must be 0..100"); } check((drop_percent <= 0) || (drop_percent >= 100), - "value of drop percentage: -D<%value> must be 0..100"); + "value of drop percentage: -D must be 0..100"); max_pdrop_.push_back(drop_percent); } else { num_drops = positiveInteger("value of max drops number: -d must be a positive integer");