diff options
author | San Jacobs | 2022-07-20 03:43:20 +0200 |
---|---|---|
committer | San Jacobs | 2022-07-20 03:43:20 +0200 |
commit | cfa1683bc90c8fa04294fd4e43c523fae0146405 (patch) | |
tree | 5a8e7b72c969f8f2022bdb52085d911a4779cbf5 | |
parent | 879de06940dd30c38fd95067ee19c72913909c64 (diff) | |
download | satscalc-cfa1683bc90c8fa04294fd4e43c523fae0146405.tar.gz satscalc-cfa1683bc90c8fa04294fd4e43c523fae0146405.tar.bz2 satscalc-cfa1683bc90c8fa04294fd4e43c523fae0146405.zip |
Understanding the bug
-rwxr-xr-x | src/time.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/time.cpp b/src/time.cpp index d42b780..8fd8931 100755 --- a/src/time.cpp +++ b/src/time.cpp @@ -180,6 +180,7 @@ workday::workday(const moment& previous_wrap, for(timeblock& each_block : blocks){ // C++11 stuff right here. // FIXME: I think this is the source of the crash and infinite loop, because it reaches garbage data. // Limit it to total_timeblocks! + // When it doesn't crash, it is because all the garbage moments are: 00:00 0-00-00 std::cout << "pricing: " << timeprint(each_block) << std::endl; if(each_block.hourcount() == 8) { each_block.valuefactor = 7.5/8.0; |