diff options
author | San Jacobs | 2023-05-18 16:37:45 +0200 |
---|---|---|
committer | SanJacobs | 2023-05-18 16:38:19 +0200 |
commit | 8351103dc23c88bc390e9dd9e9c7112e7c4b80b5 (patch) | |
tree | e7ff98674e835bed9cf31a778ffe7364143b9558 | |
parent | f429f940d4c28c79ac778d1f99f200e8bc91e4ca (diff) | |
download | satscalc-8351103dc23c88bc390e9dd9e9c7112e7c4b80b5.tar.gz satscalc-8351103dc23c88bc390e9dd9e9c7112e7c4b80b5.tar.bz2 satscalc-8351103dc23c88bc390e9dd9e9c7112e7c4b80b5.zip |
Tested stuff, removed needless comment
-rw-r--r-- | src/main.odin | 4 | ||||
-rw-r--r-- | src/time.odin | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/main.odin b/src/main.odin index 36a1c2f..89ff39e 100644 --- a/src/main.odin +++ b/src/main.odin @@ -4,9 +4,9 @@ import "core:fmt" main :: proc() { //test() - new_workday({0, 0, 1, 1, 1}, + new_workday({10, 22, 1, 5, 2023}, {00, 08, 5, 5, 2023}, - {00, 07, 6, 5, 2023}, + {00, 05, 6, 5, 2023}, {30, 21, 5, 5, 2023}) } diff --git a/src/time.odin b/src/time.odin index 56d7425..bdef718 100644 --- a/src/time.odin +++ b/src/time.odin @@ -72,7 +72,6 @@ new_workday :: proc(previous_wrap : Moment, // though so that at least one hour of the unused overtime is not counted. // (It's unclear if an 8-hour day that ends 3 hours in counts as having 5 hours of unused overtime) max(clamp(sub(planned_wrap, {0, 1, 0}), wrap, add(wrap, {0, 2, 0})), - //max(sub(planned_wraptime, {0,1,0}), wrap), add(call, {0, 4, 0})), 0, ""} // ^ Minimum 4 hour day ^ @@ -133,6 +132,8 @@ new_workday :: proc(previous_wrap : Moment, fmt.printf("Block %2i: %s\n", i+1, toString(each_block)) } + fmt.println(total_timeblocks) + // TODO: // BIG BLOCK OF RULES N SHIT GOES HERE // BIG BLOCK OF RULES N SHIT GOES HERE |