From 2728e4d55e1c9e84ee5aae4ee8e9c380198d1c99 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 6 Mar 2009 00:26:30 -0400 Subject: Changed the way that account balances are computed --- src/filters.cc | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'src/filters.cc') diff --git a/src/filters.cc b/src/filters.cc index 2895bf7f..f8736667 100644 --- a/src/filters.cc +++ b/src/filters.cc @@ -207,30 +207,8 @@ void calc_posts::operator()(post_t& post) account_t * acct = post.reported_account(); acct->xdata().add_flags(ACCOUNT_EXT_VISITED); - if (! account_wise) { + if (! account_wise) add_or_set_value(xdata.total, xdata.visited_value); - } else { - account_t::xdata_t * acct_xdata = &acct->xdata(); - - add_or_set_value(acct_xdata->self_details.total, xdata.visited_value); - - acct_xdata->self_details.posts_count++; - acct_xdata->self_details.posts_virtuals_count++; - - while (true) { - add_or_set_value(acct_xdata->family_details.total, xdata.visited_value); - - acct_xdata->family_details.posts_count++; - if (post.has_flags(POST_VIRTUAL)) - acct_xdata->family_details.posts_virtuals_count++; - - acct = acct->parent; - if (acct) - acct_xdata = &acct->xdata(); - else - break; - } - } item_handler::operator()(post); -- cgit v1.2.3