Merge pull request #13 from tisyang/master

Fix example code of timer usage not alarm in README.md
This commit is contained in:
Joachim Nilsson authored and GitHub committed 2017-11-22 02:33:35 +01:00
commit 70f04c10e1
1 file changed
+1 -1
+1 -1
View File
@@ -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);
}