diff options
author | Michael Larson <slioch@eng-140.vyatta.com> | 2008-06-20 13:43:08 -0700 |
---|---|---|
committer | Michael Larson <slioch@eng-140.vyatta.com> | 2008-06-20 13:43:08 -0700 |
commit | 19b37dab7cebe35f8faf9dea779d5d68d19d7b5f (patch) | |
tree | 7b769dcee92f77aba993d359347e016e80f239bf | |
parent | 001eb0f221f28ba77f9e99bddd03ac8889aa8da8 (diff) | |
download | vyatta-wanloadbalance-19b37dab7cebe35f8faf9dea779d5d68d19d7b5f.tar.gz vyatta-wanloadbalance-19b37dab7cebe35f8faf9dea779d5d68d19d7b5f.zip |
remove stdio statements
-rw-r--r-- | src/lbdecision.cc | 3 |
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++); |