summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-09-26 00:38:12 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-09-26 00:38:12 -0400
commit2b8a4abdbf5ff40547cd99a1feab8574740147f9 (patch)
tree140db912235b9c227e223db10262efec7401ad69
parentc2c59d612b5dea8e933bb0da1e4fc751212403c4 (diff)
downloadfork-ledger-2b8a4abdbf5ff40547cd99a1feab8574740147f9.tar.gz
fork-ledger-2b8a4abdbf5ff40547cd99a1feab8574740147f9.tar.bz2
fork-ledger-2b8a4abdbf5ff40547cd99a1feab8574740147f9.zip
another fix to interval reporting; end condition was sometimes off by one
-rw-r--r--walk.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/walk.cc b/walk.cc
index 4db7935d..2683aa2d 100644
--- a/walk.cc
+++ b/walk.cc
@@ -281,7 +281,7 @@ void interval_transactions::operator()(transaction_t& xact)
if (interval) {
std::time_t quant = interval.increment(interval.begin);
- if (std::difftime(xact.entry->date, quant) > 0) {
+ if (std::difftime(xact.entry->date, quant) >= 0) {
if (last_xact) {
start = interval.begin;
finish = quant;