From 899ad19ead39da4f46f36b80d616b8c63236422d Mon Sep 17 00:00:00 2001 From: "fredrik@DOLDA2000.COM" Date: Fri, 29 Apr 2005 11:54:21 +0000 Subject: [PATCH] Fixed the timeout. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/icmp-dn@222 959494ce-11ee-0310-bf91-de5d638817bd --- idnlookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.11.0