diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2016-08-02 15:02:38 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2016-08-02 15:10:53 +0200 |
commit | de09cf982772733945dd853bc9a54b7b275af705 (patch) | |
tree | f69b7607e41ceee32b8ed3d4061e90d4a85cc04b | |
parent | a8066e9b1421e46b26a435265519bff6f6a35ead (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>
-rw-r--r-- | llmnr.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |