From 55482759d38d1841dfa0749367455c3dae74f844 Mon Sep 17 00:00:00 2001 From: david Date: Wed, 3 Dec 2008 22:16:19 +0000 Subject: [PATCH] Move the code that handles --nogcc so it doesn't split up the code that handles --min-rate and --max-rate. Doesn't affect functionality. --- scan_engine.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scan_engine.cc b/scan_engine.cc index 882457de1..3d3fc4b1e 100644 --- a/scan_engine.cc +++ b/scan_engine.cc @@ -962,13 +962,6 @@ bool GroupScanStats::sendOK(struct timeval *when) { } } - /* In case the user specifically asked for no group congestion control */ - if (o.nogcc) { - if (when) - *when = USI->now; - return true; - } - /* Enforce a minimum scanning rate, if necessary. If we're ahead of schedule, record the time of the next scheduled send and submit to congestion control. If we're behind schedule, return true to indicate that we need to @@ -984,6 +977,13 @@ bool GroupScanStats::sendOK(struct timeval *when) { } } + /* In case the user specifically asked for no group congestion control */ + if (o.nogcc) { + if (when) + *when = USI->now; + return true; + } + /* When there is only one target left, let the host congestion stuff deal with it. */ if (USI->numIncompleteHostsLessThan(2)) {