From e3dca8255dc0d04ece4dc1cebd7cdcdcf4a9c86c Mon Sep 17 00:00:00 2001 From: tisyang Date: Wed, 22 Nov 2017 09:25:12 +0800 Subject: [PATCH] Fix example code of timer usage not alarm in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4c4ac86..582dd09 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ int main(void) uev_init(&ctx); /* Set up a timer watcher to call cb() every other second */ - uev_timer_init(&ctx, &timer, cb, NULL, 0, 2 * 1000); + uev_timer_init(&ctx, &timer, cb, NULL, 2 * 1000, 2 * 1000); return uev_run(&ctx, 0); }