From: Stephen Morris Date: Mon, 28 May 2012 13:01:12 +0000 (+0100) Subject: [1954] Minor changes X-Git-Tag: trac2351_base~226^2~76^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7401fd9fbbe95b310165bd34da5b27359caf1c66;p=thirdparty%2Fkea.git [1954] Minor changes Remove a duplicated line in commandOptions::reset() and corrected header comments in initClientsNum(). --- diff --git a/tests/tools/perfdhcp/command_options.cc b/tests/tools/perfdhcp/command_options.cc index aa47596d78..7b62076a7d 100644 --- a/tests/tools/perfdhcp/command_options.cc +++ b/tests/tools/perfdhcp/command_options.cc @@ -54,7 +54,6 @@ CommandOptions::reset() { rate_ = 0; report_delay_ = 0; clients_num_ = 0; - clients_num_ = 0; mac_prefix_.assign(mac, mac + 6); base_.resize(0); num_request_.resize(0); diff --git a/tests/tools/perfdhcp/command_options.h b/tests/tools/perfdhcp/command_options.h index a0e99af6c2..033d29ad82 100644 --- a/tests/tools/perfdhcp/command_options.h +++ b/tests/tools/perfdhcp/command_options.h @@ -293,9 +293,11 @@ private: /// \throw InvalidParameter if string is empty std::string nonEmptyString(const std::string& errmsg) const; - /// \brief Calculates max_random_ and random_range_ + /// \brief Set number of clients + /// + /// Interprets the getopt() "opt" global variable as the number of clients + /// (a non-negative number). This value is specified by the "-R" switch. /// - /// \param opt Value of -R option /// \throw InvalidParameter if -R is wrong void initClientsNum();