From 2b8a4abdbf5ff40547cd99a1feab8574740147f9 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 26 Sep 2004 00:38:12 -0400 Subject: another fix to interval reporting; end condition was sometimes off by one --- walk.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3