BIND 10 trac1954, updated. a3f8c40ba785618482a17a3ee2cf8edc65e37d73 [1954] Correcting error in -D<value%>

BIND 10 source code commits bind10-changes at lists.isc.org
Fri May 25 13:27:35 UTC 2012


The branch, trac1954 has been updated
       via  a3f8c40ba785618482a17a3ee2cf8edc65e37d73 (commit)
      from  3f32b68d6f2d0f02af6cebac046a604751ad4dcc (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a3f8c40ba785618482a17a3ee2cf8edc65e37d73
Author: Marcin Siodelski <marcin at isc.org>
Date:   Fri May 25 15:27:22 2012 +0200

    [1954] Correcting error in -D<value%>

-----------------------------------------------------------------------

Summary of changes:
 tests/tools/perfdhcp/command_options.cc |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

-----------------------------------------------------------------------
diff --git a/tests/tools/perfdhcp/command_options.cc b/tests/tools/perfdhcp/command_options.cc
index 154a340..aa47596 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 -D<value>argument
     size_t percent_loc = 0;     // Location of % sign in -D<value>
-    double drop_percent = 0;    // % value (1..100) in -D<%value>
+    double drop_percent = 0;    // % value (1..100) in -D<value%>
     int num_drops = 0;          // Max number of drops specified in -D<value>
     int num_req = 0;            // Max number of dropped requests in -n<max-drops>
     int offset_arg = 0;         // Temporary variable holding offset arguments
@@ -173,10 +173,10 @@ CommandOptions::initialize(int argc, char** argv) {
                     drop_percent = boost::lexical_cast<double>(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<value%> 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<value%> must be 0..100");
                 max_pdrop_.push_back(drop_percent);
             } else {
                 num_drops = positiveInteger("value of max drops number: -d<value> must be a positive integer");



More information about the bind10-changes mailing list