diff options
author | Francis Dupont <fdupont@isc.org> | 2008-01-03 00:30:14 +0000 |
---|---|---|
committer | Francis Dupont <fdupont@isc.org> | 2008-01-03 00:30:14 +0000 |
commit | be62cf0675d84a35d6ce68f1a7ae4b7521c64834 (patch) | |
tree | 6df2fbb5d267d67ef0a3df86b4934cd0b2e8cf62 /relay | |
parent | 1d9774ab570d77b7f52432c36e64cc7e59c50a59 (diff) | |
download | isc-dhcp-be62cf0675d84a35d6ce68f1a7ae4b7521c64834.tar.gz |
finer granularity timers
Diffstat (limited to 'relay')
-rw-r--r-- | relay/dhcrelay.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/relay/dhcrelay.c b/relay/dhcrelay.c index 8563ae04..3df1a586 100644 --- a/relay/dhcrelay.c +++ b/relay/dhcrelay.c @@ -34,6 +34,7 @@ #include "dhcpd.h" #include <syslog.h> +#include <sys/time.h> static void usage PROTO ((void)); @@ -266,7 +267,7 @@ main(int argc, char **argv) { } /* Get the current time... */ - time(&cur_time); + gettimeofday(&cur_tv, NULL); /* Discover all the network interfaces. */ discover_interfaces (DISCOVER_RELAY); |