[refactor] change flow(acct, fixed), clean code
commit5b5e690e354e97512f85c51d889fd1d3490046c6
authorHassan Afify <hassan@afify.dev>
Wed, 18 Mar 2020 11:39:36 +0000 (18 14:39 +0300)
committerHassan Afify <hassan@afify.dev>
Wed, 18 Mar 2020 11:39:36 +0000 (18 14:39 +0300)
tree57442644a3fba03cba49082dac0fd0b540706e3c
parent0999300e221cfe73c1af449ae26ebd2d5b3a0176
[refactor] change flow(acct, fixed), clean code

* change print_t flow
read the config tasks
select applicable for today
calculate total duration
calculate accepted tasks
get fixed tasks
copy accepted from config tasks
copy fixed from accepted
calculate duration between each 2 fixed start times
calculate actual sum duration and compare
fail if not match
copy accepted tasks to returned Task_t array

* clean code
remove uneeded functions
remove complexity
README.md
config.def.h
splanner.c