-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
21 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ | |
// Contributors: | ||
// ZettaScale Zenoh Team, <[email protected]> | ||
|
||
#include <signal.h> | ||
#include <stddef.h> | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
|
@@ -98,7 +97,7 @@ int main(int argc, char **argv) { | |
printf("Press CTRL-C to undeclare liveliness token and quit...\n"); | ||
z_clock_t clock = z_clock_now(); | ||
while (timeout == 0 || z_clock_elapsed_s(&clock) < timeout) { | ||
z_sleep_s(1); | ||
z_sleep_ms(100); | ||
} | ||
|
||
// LivelinessTokens are automatically closed when dropped | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters