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
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;
}
}