summaryrefslogtreecommitdiffstats
path: root/src/schedule.h
diff options
context:
space:
mode:
authorJose M. Guisado <jguisado@soleta.eu>2021-03-11 09:40:04 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2021-03-11 12:22:36 +0100
commite68fefeac780e6c87c6ca4722027288356eb0cc8 (patch)
treea98162b964caa2d42157d526b5eb35955bd3013b /src/schedule.h
parent76e6375720d12a7784e4784bb08b2e0050bdcf45 (diff)
#997 Set stale check flag when processing schedule/create
If you schedule a command in the past, the scheduler executes such command immediately. When expanding a schedule that result in commands that run weekly, commands in the past are also executed, which is not expected. Fix this by using the check_stale flag (formerly on_start) so commands in the past that result from expansions are skipped.
Diffstat (limited to 'src/schedule.h')
-rw-r--r--src/schedule.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/schedule.h b/src/schedule.h
index 14b8998..12c394c 100644
--- a/src/schedule.h
+++ b/src/schedule.h
@@ -16,7 +16,7 @@ struct og_schedule_time {
uint32_t hours;
uint32_t am_pm;
uint32_t minutes;
- bool on_start;
+ bool check_stale;
};
enum og_schedule_type {