diff options
author | San Jacobs | 2022-07-20 03:05:33 +0200 |
---|---|---|
committer | San Jacobs | 2022-07-20 03:05:33 +0200 |
commit | d419baa9c7befb2ab5555c199beed93cb83cec3c (patch) | |
tree | 0a182496c64986f5452b82df225c0a64fca36cdd | |
parent | c20c3178ea7ba353c10b81994b4f750e6f7f40f3 (diff) | |
download | satscalc-d419baa9c7befb2ab5555c199beed93cb83cec3c.tar.gz satscalc-d419baa9c7befb2ab5555c199beed93cb83cec3c.tar.bz2 satscalc-d419baa9c7befb2ab5555c199beed93cb83cec3c.zip |
Started debugging random stuck-in-loop bug
-rwxr-xr-x | src/time.cpp | 3 |
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); } |