summaryrefslogtreecommitdiff
path: root/src/times.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/times.cc')
-rw-r--r--src/times.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/times.cc b/src/times.cc
index 0384edf6..dd10a508 100644
--- a/src/times.cc
+++ b/src/times.cc
@@ -1397,8 +1397,17 @@ bool date_interval_t::find_period(const date_t& date)
DEBUG("times.interval", "date = " << date);
DEBUG("times.interval", "scan = " << scan);
DEBUG("times.interval", "end_of_scan = " << end_of_scan);
+#if defined(DEBUG_ON)
+ if (finish)
+ DEBUG("times.interval", "finish = " << *finish);
+ else
+ DEBUG("times.interval", "finish is not set");
+#endif
while (date >= scan && (! finish || scan < *finish)) {
+ DEBUG("times.interval", "date = " << date);
+ DEBUG("times.interval", "end_of_scan = " << end_of_scan);
+
if (date < end_of_scan) {
start = scan;
end_of_duration = end_of_scan;
@@ -1416,6 +1425,8 @@ bool date_interval_t::find_period(const date_t& date)
end_of_scan = duration->add(scan);
}
+ DEBUG("times.interval", "false: failed scan");
+
return false;
}