Fix example code of timer usage not alarm in README.md

This commit is contained in:
tisyang
2017-11-22 09:25:12 +08:00
parent dbf8c0dae2
commit e3dca8255d
+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);
}