aboutsummaryrefslogtreecommitdiff
path: root/src/time.cpp
diff options
context:
space:
mode:
authorSan Jacobs2022-07-20 03:05:33 +0200
committerSan Jacobs2022-07-20 03:05:33 +0200
commitd419baa9c7befb2ab5555c199beed93cb83cec3c (patch)
tree0a182496c64986f5452b82df225c0a64fca36cdd /src/time.cpp
parentc20c3178ea7ba353c10b81994b4f750e6f7f40f3 (diff)
downloadsatscalc-d419baa9c7befb2ab5555c199beed93cb83cec3c.tar.gz
satscalc-d419baa9c7befb2ab5555c199beed93cb83cec3c.tar.bz2
satscalc-d419baa9c7befb2ab5555c199beed93cb83cec3c.zip
Started debugging random stuck-in-loop bug
Diffstat (limited to 'src/time.cpp')
-rwxr-xr-xsrc/time.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/time.cpp b/src/time.cpp
index c6b944f..185b959 100755
--- a/src/time.cpp
+++ b/src/time.cpp
@@ -157,8 +157,9 @@ workday::workday(const moment& previous_wrap,
std::sort(splitpoints, splitpoints + 10);
int j = 0;
- for(int i = 0; i<=10; i++) {
+ for(int i = 0; i<10; i++) {
const moment* each_moment = &splitpoints[i];
+ std::cout << "Splitting: " << timeprint(*each_moment) << std::endl;
if(*each_moment > call && *each_moment < wrap) {
blocks[j++] = timesplit(initial_block, *each_moment);
}