Andrew Boyson / net

Dependents:   oldheating gps motorhome heating

Revision:
132:db2174b36a6d
Parent:
128:79052cb4a41c
Child:
133:a37eb35a03f1
--- a/resolve/nr4.c	Tue Mar 19 12:12:26 2019 +0000
+++ b/resolve/nr4.c	Wed Mar 20 10:55:30 2019 +0000
@@ -96,7 +96,7 @@
     i = getExistingIp(ip);
     if (i > -1)
     {
-        if (!MsTimerHasElapsed(records[i].elapsed, FREEZE_TIMEOUT_MS)) return;
+        if (!MsTimerInterval(records[i].elapsed, FREEZE_TIMEOUT_MS)) return;
         if (Nr4Trace)
         {
             LogTimeF("NR - renew name of ");
@@ -135,7 +135,7 @@
     i = getExistingName(name);
     if (i > -1)
     {
-        if (!MsTimerHasElapsed(records[i].elapsed, FREEZE_TIMEOUT_MS)) return;
+        if (!MsTimerInterval(records[i].elapsed, FREEZE_TIMEOUT_MS)) return;
         if (Nr4Trace)
         {
             LogTimeF("NR - renew IPv4 of %s\r\n", name);
@@ -311,11 +311,11 @@
 }
 static void clearCache(struct record* pr)
 {
-    if (MsTimerHasElapsed(pr->elapsed, CACHE_TIMEOUT_MS)) pr->state = STATE_EMPTY;
+    if (MsTimerInterval(pr->elapsed, CACHE_TIMEOUT_MS)) pr->state = STATE_EMPTY;
 }
 static void nextProtocol(struct record* pr)
 {
-    if (pr->state == STATE_SENT && MsTimerHasElapsed(pr->elapsed, REPLY_TIMEOUT_MS) && pr->protocol)
+    if (pr->state == STATE_SENT && MsTimerInterval(pr->elapsed, REPLY_TIMEOUT_MS) && pr->protocol)
     {
         pr->protocol = DnsGetNextProtocol4(pr->protocol);
         if (pr->protocol)