X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=src%2Fodhcp6c.c;h=ba11ced6d23af32e47676f40159951f6341fa6b9;hb=5b98f902f616bd9b96a2128587bc6995555a43c1;hp=798598ff3965c089a332e1c5900d01b675e0a850;hpb=d88e97eade44c39d4b51eef440c3506edb050044;p=odhcp6c.git diff --git a/src/odhcp6c.c b/src/odhcp6c.c index 798598f..ba11ced 100644 --- a/src/odhcp6c.c +++ b/src/odhcp6c.c @@ -453,7 +453,7 @@ static int usage(void) " -f Don't send Client FQDN option\n" " -k Don't send a RELEASE when stopping\n" " -t Maximum timeout for DHCPv6-SOLICIT (3600)\n" - " -m Minimum time between accepting updates (60)\n" + " -m Minimum time between accepting updates (30)\n" "\nInvocation options:\n" " -p Set pidfile (/var/run/odhcp6c.pid)\n" " -d Daemonize\n" @@ -470,7 +470,7 @@ uint64_t odhcp6c_get_milli_time(void) { struct timespec t = {0, 0}; syscall(SYS_clock_gettime, CLOCK_MONOTONIC, &t); - return t.tv_sec * 1000 + t.tv_nsec / 1000000; + return ((uint64_t)t.tv_sec) * 1000 + ((uint64_t)t.tv_nsec) / 1000000; }