projects
/
project
/
mdnsd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use monotonic clock for timeouts
[project/mdnsd.git]
/
service.c
diff --git
a/service.c
b/service.c
index db4694ebc7309991ac8e8fe5e8b8cf1a9cd65b06..0b42aeeb3c47c90bdc08c3f494044dd70df27e48 100644
(file)
--- a/
service.c
+++ b/
service.c
@@
-113,7
+113,7
@@
service_add_srv(struct service *s, int ttl)
static int
service_timeout(struct service *s)
{
- time_t t =
time(NULL
);
+ time_t t =
monotonic_time(
);
if (t - s->t <= TOUT_LOOKUP)
return 0;