From cfa1683bc90c8fa04294fd4e43c523fae0146405 Mon Sep 17 00:00:00 2001 From: San Jacobs Date: Wed, 20 Jul 2022 03:43:20 +0200 Subject: Understanding the bug --- src/time.cpp | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.1