From bc5563289cd838f1bb33b86706927fae2e0d670f Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 5 Feb 2013 00:08:42 -0600 Subject: Fixed bug with --day-break option --- src/timelog.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/timelog.cc b/src/timelog.cc index 9516ba17..acd8a4fa 100644 --- a/src/timelog.cc +++ b/src/timelog.cc @@ -169,10 +169,8 @@ void time_log_t::close() foreach (account_t * account, accounts) { DEBUG("timelog", "Clocking out from account " << account->fullname()); - clock_out_from_timelog(time_xacts, - time_xact_t(none, CURRENT_TIME(), account), - context); - context.count++; + context.count += clock_out_from_timelog + (time_xacts, time_xact_t(none, CURRENT_TIME(), account), context); } assert(time_xacts.empty()); } -- cgit v1.2.3