aboutsummaryrefslogtreecommitdiffstats
path: root/icnet/transport/icnet_transport_vegas.cc
diff options
context:
space:
mode:
authorMauro Sardara <msardara+fdio@cisco.com>2017-02-24 19:27:34 +0100
committerMauro Sardara <msardara+fdio@cisco.com>2017-02-24 18:44:32 +0000
commit6b8a37403caf8830e85476343ad4be13c7372537 (patch)
treeb19a9d10d00fc177590e1237e6cc4a7da5f246bf /icnet/transport/icnet_transport_vegas.cc
parentb5439cd1b3d81f71d2d198f4bd3b29c2bbee2308 (diff)
- Added missing dependency "ccnx-portal-rta", still needed for the control messages
- Fixed little typo for being compliant with the code style - Removed include statements of deprecated library "ccnx-portal" - added level of optimization of 3 by default Change-Id: Id353e58fa1e7eeeb90bdf19ec7fd921876ab12c4 Signed-off-by: Mauro Sardara <msardara+fdio@cisco.com>
Diffstat (limited to 'icnet/transport/icnet_transport_vegas.cc')
-rw-r--r--icnet/transport/icnet_transport_vegas.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/icnet/transport/icnet_transport_vegas.cc b/icnet/transport/icnet_transport_vegas.cc
index 166e4ef0..b64678f7 100644
--- a/icnet/transport/icnet_transport_vegas.cc
+++ b/icnet/transport/icnet_transport_vegas.cc
@@ -208,8 +208,7 @@ void VegasTransportProtocol::decreaseWindow() {
void VegasTransportProtocol::increaseWindow() {
double max_window_size = -1;
socket_->getSocketOption(MAX_WINDOW_SIZE, max_window_size);
- if (current_window_size_ < max_window_size) // don't expand window above max level
- {
+ if (current_window_size_ < max_window_size) {
current_window_size_++;
socket_->setSocketOption(CURRENT_WINDOW_SIZE, current_window_size_);
}