From 1de445535ea2fa663af944e81954f8e33dced630 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sat, 21 Oct 2017 20:51:08 +0200 Subject: [PATCH] Fix periodic timer example Signed-off-by: Joachim Nilsson --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ff6bf00..6712b18 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,8 @@ int main(void) uev_ctx_t ctx; uev_init(&ctx); - uev_timer_init(&ctx, &timer, cb, NULL, 2 * 1000, 0); + /* Set up a timer watcher to call cb() every other second */ + uev_timer_init(&ctx, &timer, cb, NULL, 0, 2 * 1000); return uev_run(&ctx, 0); }