summaryrefslogtreecommitdiff
path: root/base/statistics.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/statistics.cc')
-rw-r--r--base/statistics.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/base/statistics.cc b/base/statistics.cc
index fbb056498..5c1844327 100644
--- a/base/statistics.cc
+++ b/base/statistics.cc
@@ -265,12 +265,19 @@ Database::check()
void
Database::reset()
{
+ list<GenBin *>::iterator bi = bins.begin();
+ list<GenBin *>::iterator be = bins.end();
list_t::iterator i = allStats.begin();
list_t::iterator end = allStats.end();
- while (i != end) {
+ while (bi != be) {
+ (*bi)->activate();
+
+ while (i != end) {
(*i)->reset();
++i;
+ }
+ ++bi;
}
}