Fixed the timeout.
authorfredrik@DOLDA2000.COM <fredrik@DOLDA2000.COM@959494ce-11ee-0310-bf91-de5d638817bd>
Fri, 29 Apr 2005 11:54:21 +0000 (11:54 +0000)
committerfredrik@DOLDA2000.COM <fredrik@DOLDA2000.COM@959494ce-11ee-0310-bf91-de5d638817bd>
Fri, 29 Apr 2005 11:54:21 +0000 (11:54 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/icmp-dn@222 959494ce-11ee-0310-bf91-de5d638817bd

idnlookup.c

index be4809b..d47b7de 100644 (file)
@@ -196,7 +196,7 @@ int main(int argc, char **argv)
            pfd.events = POLLIN;
            gettimeofday(&tvc, NULL);
            elapsed = ((tvc.tv_sec - tvb.tv_sec) * 1000) + ((tvc.tv_usec - tvb.tv_usec) / 1000);
-           if(elapsed > timeout) {
+           if(elapsed >= timeout) {
                fprintf(stderr, "idnlookup: timeout\n");
                exit(1);
            }