mirror of
https://github.com/troglobit/libuev.git
synced 2026-10-25 11:34:32 +00:00
Fix example code of timer usage not alarm in README.md
This commit is contained in:
1 parent
dbf8c0dae2
commit
e3dca8255d
1 file changed
+1
-1
@@ -59,7 +59,7 @@ int main(void)
|
|||||||
|
|
||||||
uev_init(&ctx);
|
uev_init(&ctx);
|
||||||
/* Set up a timer watcher to call cb() every other second */
|
/* 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);
|
return uev_run(&ctx, 0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user