This commit is contained in:
jakani24
2024-01-27 16:48:52 +01:00
parent ac8b9158ae
commit 8e050132d9
33 changed files with 96 additions and 37 deletions

View File

@@ -64,7 +64,7 @@ bool is_task_due(const std::string& task_name, const std::string& cron_expressio
is_valid_field(fields[3], current_time.tm_mon + 1) &&
is_valid_field(fields[4], current_time.tm_wday + 1)) {
// Check if the task has already been executed
// Check if the task has not already been executed
if (!task_states[task_name]) {
// Set the flag to indicate that the task has been executed
task_states[task_name] = true;