]> git.zerfleddert.de Git - record-dvb/commitdiff
take usecs into account
authormichael <michael>
Fri, 7 Jul 2006 22:39:33 +0000 (22:39 +0000)
committermichael <michael>
Fri, 7 Jul 2006 22:39:33 +0000 (22:39 +0000)
sap.c

diff --git a/sap.c b/sap.c
index 6a8ef799e6a0831a6de2f5fa6be677045cfe9ca5..654e8ac086afdd30588ade4e750912b34025b136 100644 (file)
--- 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");
Impressum, Datenschutz