summaryrefslogtreecommitdiff
path: root/src/timelog.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@fpcomplete.com>2013-02-05 00:08:42 -0600
committerJohn Wiegley <johnw@fpcomplete.com>2013-02-05 00:08:46 -0600
commitbc5563289cd838f1bb33b86706927fae2e0d670f (patch)
tree6a7d0ece110107e1a8f314d0d5cbf43ab2a39e6c /src/timelog.cc
parentc7bf701cb3cb13afe80e0a3d778d2e756dba9c0d (diff)
downloadfork-ledger-bc5563289cd838f1bb33b86706927fae2e0d670f.tar.gz
fork-ledger-bc5563289cd838f1bb33b86706927fae2e0d670f.tar.bz2
fork-ledger-bc5563289cd838f1bb33b86706927fae2e0d670f.zip
Fixed bug with --day-break option
Diffstat (limited to 'src/timelog.cc')
-rw-r--r--src/timelog.cc6
1 files changed, 2 insertions, 4 deletions
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());
}