summaryrefslogtreecommitdiff
path: root/llmnr.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-08-02 15:02:38 +0200
committerTobias Klauser <tklauser@distanz.ch>2016-08-02 15:10:53 +0200
commitde09cf982772733945dd853bc9a54b7b275af705 (patch)
treef69b7607e41ceee32b8ed3d4061e90d4a85cc04b /llmnr.c
parenta8066e9b1421e46b26a435265519bff6f6a35ead (diff)
llmnrd: Increase select() timeout
There is no need to have such a short timeout value (200us), increase it to 50ms in order to reduce CPU load. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'llmnr.c')
-rw-r--r--llmnr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/llmnr.c b/llmnr.c
index b3b2835..a833ef1 100644
--- a/llmnr.c
+++ b/llmnr.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2014-2015 Tobias Klauser <tklauser@distanz.ch>
+ * Copyright (C) 2014-2016 Tobias Klauser <tklauser@distanz.ch>
*
* This file is part of llmnrd.
*
@@ -305,7 +305,7 @@ int llmnr_run(void)
nfds = llmnr_sock_ipv4 + 1;
tv.tv_sec = 0;
- tv.tv_usec = 200;
+ tv.tv_usec = 50000;
ret = select(nfds, &rfds, NULL, NULL, &tv);
if (ret < 0) {