BIND 10 trac1959, updated. 5585299f3e340017f57307bbf9568bb98931279f [1959] Minor change in checkExitConditions.

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Sep 4 15:23:18 UTC 2012


The branch, trac1959 has been updated
       via  5585299f3e340017f57307bbf9568bb98931279f (commit)
      from  c2fa97e23503ea00f82e0adff38d14473f475da8 (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 5585299f3e340017f57307bbf9568bb98931279f
Author: Marcin Siodelski <marcin at isc.org>
Date:   Tue Sep 4 17:23:09 2012 +0200

    [1959] Minor change in checkExitConditions.

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

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

-----------------------------------------------------------------------
diff --git a/tests/tools/perfdhcp/test_control.cc b/tests/tools/perfdhcp/test_control.cc
index 6e7fa05..446de81 100644
--- a/tests/tools/perfdhcp/test_control.cc
+++ b/tests/tools/perfdhcp/test_control.cc
@@ -149,7 +149,7 @@ TestControl::checkExitConditions() const {
         }
     }
     // Check if we reached maximum number REQUEST packets.
-    if (options.getNumRequests().size() == 2) {
+    if (options.getNumRequests().size() > 1) {
         if (options.getIpVersion() == 4) {
             if (stats_mgr4_->getSentPacketsNum(StatsMgr4::XCHG_RA) >=
                 options.getNumRequests()[1]) {
@@ -185,7 +185,7 @@ TestControl::checkExitConditions() const {
         }
     }
     // Check if we reached maximum number of drops of ACK/REPLY packets.
-    if (options.getMaxDrop().size() == 2) {
+    if (options.getMaxDrop().size() > 1) {
         if (options.getIpVersion() == 4) {
             if (stats_mgr4_->getDroppedPacketsNum(StatsMgr4::XCHG_RA) >=
                 options.getMaxDrop()[1]) {
@@ -226,7 +226,7 @@ TestControl::checkExitConditions() const {
         }
     }
     // Check if we reached maximum drops percentage of ACK/REPLY packets.
-    if (options.getMaxDropPercentage().size() == 2) {
+    if (options.getMaxDropPercentage().size() > 1) {
         if (options.getIpVersion() == 4) {
             if ((stats_mgr4_->getSentPacketsNum(StatsMgr4::XCHG_RA) > 10) &&
                 ((100. * stats_mgr4_->getDroppedPacketsNum(StatsMgr4::XCHG_RA) /



More information about the bind10-changes mailing list