From: michael Date: Fri, 7 Jul 2006 22:39:33 +0000 (+0000) Subject: take usecs into account X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/record-dvb/commitdiff_plain/77dfd7fa7816e4fbfbddcde8a155b1383b92eddc take usecs into account --- 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");