From 1540ccec01661867b5d758c1e57f26a73b039ac6 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 3 Mar 2009 20:28:09 -0400 Subject: Gather account details in a details_t structure --- src/output.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/output.cc') diff --git a/src/output.cc b/src/output.cc index e14c75dc..b559f253 100644 --- a/src/output.cc +++ b/src/output.cc @@ -290,8 +290,10 @@ void format_accounts::flush() if (report.session.master->has_xdata()) { account_t::xdata_t& xdata(report.session.master->xdata()); - if (! report.HANDLED(no_total) && top_displayed > 1 && xdata.total) { - xdata.value = xdata.total; + if (! report.HANDLED(no_total) && top_displayed > 1 && + xdata.family_details.total) { + xdata.self_details.total = xdata.family_details.total; + bind_scope_t bound_scope(report, *report.session.master); separator_format.format(out, bound_scope); total_line_format.format(out, bound_scope); -- cgit v1.2.3