statistics.cc:
on Database::reset(), reset all stats in every bin, not just current one. base/statistics.cc: on Database::reset(), reset all stats in every bin, not just current one. --HG-- extra : convert_revision : 0f3443b36ee00952810818a035c99267da8871d9
This commit is contained in:
parent
29474bdf02
commit
8834d91f21
|
@ -250,12 +250,19 @@ Database::check()
|
||||||
void
|
void
|
||||||
Database::reset()
|
Database::reset()
|
||||||
{
|
{
|
||||||
|
list<GenBin *>::iterator bi = bins.begin();
|
||||||
|
list<GenBin *>::iterator be = bins.end();
|
||||||
list_t::iterator i = allStats.begin();
|
list_t::iterator i = allStats.begin();
|
||||||
list_t::iterator end = allStats.end();
|
list_t::iterator end = allStats.end();
|
||||||
|
|
||||||
while (i != end) {
|
while (bi != be) {
|
||||||
|
(*bi)->activate();
|
||||||
|
|
||||||
|
while (i != end) {
|
||||||
(*i)->reset();
|
(*i)->reset();
|
||||||
++i;
|
++i;
|
||||||
|
}
|
||||||
|
++bi;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue