]> git.earman.xyz Git - sensor-watch.git/commit
Merge PR #439 - fix scheduled task misses
authorMatheus Moreira <matheus@matheusmoreira.com>
Mon, 26 Aug 2024 12:14:29 +0000 (09:14 -0300)
committerMatheus Afonso Martins Moreira <matheus@matheusmoreira.com>
Fri, 30 Aug 2024 19:44:38 +0000 (16:44 -0300)
commitc7413322a5023fac1f50c837c8ef809660fbbfa1
treeb4d3a23a62e046122f6fce70de7b6b9eef6a264a
parentc8a87d3b7c4e41a5b36f5c7dfa2986a36fd368d3
parent20b4a32835d6b8aedda40cb49025cf3fb78beebe
Merge PR #439 - fix scheduled task misses

The movement was checking for scheduled tasks
by comparing for equality their scheduled times to
the current time. However, it is possible that the time
has moved past the scheduled time by the time the
function executes, leading to scheduled tasks not
being executed and therefore to missed deadlines.

Changing it to `<=` fixes the problem by taking that
possibility into account.

Helped-by: Wesley Ellis <tahnok@gmail.com>
Reviewed-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com>
GitHub-Pull-Request: https://github.com/joeycastillo/Sensor-Watch/pull/439