diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2011-01-05 02:07:15 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2011-01-05 02:07:15 +0300 |
commit | 2a05ce54544185f34016b1a9e46afda9d0af980e (patch) | |
tree | c048887255771beef98defd9a2822289d575b5e7 /accel-pptpd/triton | |
parent | cdd91cd6a6a7bd00dcf9a0ba78ea76e01ce33655 (diff) | |
download | accel-ppp-2a05ce54544185f34016b1a9e46afda9d0af980e.tar.gz accel-ppp-2a05ce54544185f34016b1a9e46afda9d0af980e.zip |
shaper_tbf: implemented time ranges
Diffstat (limited to 'accel-pptpd/triton')
-rw-r--r-- | accel-pptpd/triton/timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pptpd/triton/timer.c b/accel-pptpd/triton/timer.c index fbb3c57..e419e93 100644 --- a/accel-pptpd/triton/timer.c +++ b/accel-pptpd/triton/timer.c @@ -135,7 +135,7 @@ int __export triton_timer_add(struct triton_context_t *ctx, struct triton_timer_ t->ctx = (struct _triton_context_t *)ctx->tpd; else t->ctx = (struct _triton_context_t *)default_ctx.tpd; - t->fd = timerfd_create(CLOCK_MONOTONIC, 0); + t->fd = timerfd_create(abs_time ? CLOCK_REALTIME : CLOCK_MONOTONIC, 0); if (t->fd < 0) { triton_log_error("timer:timerfd_create: %s", strerror(errno)); mempool_free(t); |