summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Larson <slioch@eng-140.vyatta.com>2008-06-20 13:43:08 -0700
committerMichael Larson <slioch@eng-140.vyatta.com>2008-06-20 13:43:08 -0700
commit19b37dab7cebe35f8faf9dea779d5d68d19d7b5f (patch)
tree7b769dcee92f77aba993d359347e016e80f239bf
parent001eb0f221f28ba77f9e99bddd03ac8889aa8da8 (diff)
downloadvyatta-wanloadbalance-19b37dab7cebe35f8faf9dea779d5d68d19d7b5f.tar.gz
vyatta-wanloadbalance-19b37dab7cebe35f8faf9dea779d5d68d19d7b5f.zip
remove stdio statements
-rw-r--r--src/lbdecision.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/lbdecision.cc b/src/lbdecision.cc
index c37475c..4cd80df 100644
--- a/src/lbdecision.cc
+++ b/src/lbdecision.cc
@@ -285,12 +285,10 @@ LBDecision::get_new_weights(LBData &data, LBRule &rule)
cout << "LBDecision::get_new_weights(): " << iter->first << " is active: " << (data.is_active(iter->first) ? "true" : "false") << endl;
}
if (data.is_active(iter->first)) {
- cout << "active: " << ct << ", " << iter->second << endl;
weights.insert(pair<int,float>(ct,iter->second));
group += iter->second;
}
else {
- cout << "INactive: " << ct << ", " << iter->second << endl;
weights.insert(pair<int,float>(ct,0.));
}
++ct;
@@ -308,7 +306,6 @@ LBDecision::get_new_weights(LBData &data, LBRule &rule)
if (w_iter->second > 0.) { //can only be an integer value here
w = float(w_iter->second) / float(group);
}
- cout << "weight is: " << w << endl;
group -= w_iter->second; //I THINK THIS NEEDS TO BE ADJUSTED TO THE OVERALL REMAINING VALUES. which is this...
if (w < .01) {
weights.erase(w_iter++);