summaryrefslogtreecommitdiff
path: root/src/lbdata.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lbdata.cc')
-rw-r--r--src/lbdata.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lbdata.cc b/src/lbdata.cc
index 39deaa6..99c36e7 100644
--- a/src/lbdata.cc
+++ b/src/lbdata.cc
@@ -66,6 +66,12 @@ LBHealth::put(int rtt)
void
LBHealth::start_new_test_cycle()
{
+ //let's first clear out all the old results
+ TestIter t = _test_coll.begin();
+ while (t != _test_coll.end()) {
+ t->second->_state = LBTest::K_NONE;
+ ++t;
+ }
_test_iter = _test_coll.begin();
// _test_iter->second->start();
}