]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1954] Minor changes
authorStephen Morris <stephen@isc.org>
Mon, 28 May 2012 13:01:12 +0000 (14:01 +0100)
committerStephen Morris <stephen@isc.org>
Mon, 28 May 2012 13:01:12 +0000 (14:01 +0100)
Remove a duplicated line in commandOptions::reset() and corrected
header comments in initClientsNum().

tests/tools/perfdhcp/command_options.cc
tests/tools/perfdhcp/command_options.h

index aa47596d7814609b1efd3b4ac9518049ee59d042..7b62076a7dadf3c13b708cd50694e0b27793ebec 100644 (file)
@@ -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);
index a0e99af6c23f96f2f609bf83085b957dc37aa142..033d29ad82a0e2e4d5b378377d1162a122dedae0 100644 (file)
@@ -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<value> is wrong
     void initClientsNum();