diff options
-rw-r--r-- | src/providers/dp_ptask.c | 2 | ||||
-rw-r--r-- | src/providers/dp_ptask_private.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/providers/dp_ptask.c b/src/providers/dp_ptask.c index 5a14e60b2..9eca429d1 100644 --- a/src/providers/dp_ptask.c +++ b/src/providers/dp_ptask.c @@ -238,6 +238,8 @@ static void be_ptask_schedule(struct be_ptask *task, task->name); be_ptask_disable(task); } + + task->next_execution = tv.tv_sec; } errno_t be_ptask_create(TALLOC_CTX *mem_ctx, diff --git a/src/providers/dp_ptask_private.h b/src/providers/dp_ptask_private.h index 29694720d..9c97fae7b 100644 --- a/src/providers/dp_ptask_private.h +++ b/src/providers/dp_ptask_private.h @@ -38,6 +38,7 @@ struct be_ptask { void *pvt; const char *name; + time_t next_execution; /* next time when the task is scheduled */ time_t last_execution; /* last time when send was called */ struct tevent_req *req; /* active tevent request */ struct tevent_timer *timer; /* active tevent timer */ |