From 2a05ce54544185f34016b1a9e46afda9d0af980e Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Wed, 5 Jan 2011 02:07:15 +0300 Subject: shaper_tbf: implemented time ranges --- accel-pptpd/triton/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'accel-pptpd/triton') 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); -- cgit v1.2.3