From 77dfd7fa7816e4fbfbddcde8a155b1383b92eddc Mon Sep 17 00:00:00 2001 From: michael Date: Fri, 7 Jul 2006 22:39:33 +0000 Subject: [PATCH] take usecs into account --- sap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sap.c b/sap.c index 6a8ef79..654e8ac 100644 --- a/sap.c +++ b/sap.c @@ -242,7 +242,8 @@ char *get_url_from_sap(char *service) } } - } while(curr.tv_sec < start.tv_sec+SAP_TIMEOUT); + } while(curr.tv_sec < start.tv_sec+SAP_TIMEOUT || + ((curr.tv_sec == start.tv_sec+SAP_TIMEOUT) && (curr.tv_usec < start.tv_usec))); if (!(inet_aton(SAP_ADDR, &sapinaddr))) { perror("inet_aton"); -- 2.39.5