From: Wlodek Wencel Date: Fri, 20 Mar 2020 13:14:41 +0000 (+0100) Subject: [#1046] fixed help, changed fucntion param name X-Git-Tag: Kea-1.7.6~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e2c030617be3fd63acf8dcd6d4fb719e2f7c5ab;p=thirdparty%2Fkea.git [#1046] fixed help, changed fucntion param name --- diff --git a/src/bin/perfdhcp/command_options.cc b/src/bin/perfdhcp/command_options.cc index 0ddadd0d2a..acc6ee62c2 100644 --- a/src/bin/perfdhcp/command_options.cc +++ b/src/bin/perfdhcp/command_options.cc @@ -1152,7 +1152,7 @@ CommandOptions::usage() const { std::cout << "perfdhcp [-huv] [-4|-6] [-A] [-e]\n" " [-r] [-f]\n" - " [-F] [-t] [-C] [-R] + " [-F] [-t] [-C] [-R]\n" " [-b] [-n] [-p] [-d]\n" " [-D] [-l] [-P]\n" " [-L] [-N]\n" diff --git a/src/bin/perfdhcp/stats_mgr.h b/src/bin/perfdhcp/stats_mgr.h index 75d41840c3..fca8ecc4a6 100644 --- a/src/bin/perfdhcp/stats_mgr.h +++ b/src/bin/perfdhcp/stats_mgr.h @@ -1090,7 +1090,8 @@ public: /// /// \param clean_report value to generate easy to parse report. /// \param sep_ string used as separator if clean_report enabled.. - void printIntermediateStats(bool clean_report, std::string sep_) const { + void + printIntermediateStats(bool clean_report, std::string clean_sep) const { std::ostringstream stream_sent; std::ostringstream stream_rcvd; std::ostringstream stream_drops; @@ -1101,7 +1102,7 @@ public: if (it != exchanges_.begin()) { if (clean_report) { - sep = sep_; + sep = clean_sep; } else { sep = "/"; } @@ -1114,9 +1115,9 @@ public: if (clean_report) { std::cout << stream_sent.str() - << sep_ << stream_rcvd.str() - << sep_ << stream_drops.str() - << sep_ << stream_reject.str() + << clean_sep << stream_rcvd.str() + << clean_sep << stream_drops.str() + << clean_sep << stream_reject.str() << std::endl; } else {