From: fredrik@DOLDA2000.COM Date: Fri, 29 Apr 2005 11:54:21 +0000 (+0000) Subject: Fixed the timeout. X-Git-Url: http://dolda2000.com/gitweb/?p=icmp-dn.git;a=commitdiff_plain;h=899ad19ead39da4f46f36b80d616b8c63236422d Fixed the timeout. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/icmp-dn@222 959494ce-11ee-0310-bf91-de5d638817bd --- diff --git a/idnlookup.c b/idnlookup.c index be4809b..d47b7de 100644 --- a/idnlookup.c +++ b/idnlookup.c @@ -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); }