Andrew Boyson / net

Dependents:   oldheating gps motorhome heating

Revision:
133:a37eb35a03f1
Parent:
132:db2174b36a6d
Child:
140:9000ea70b220
--- a/resolve/nr4.c	Wed Mar 20 10:55:30 2019 +0000
+++ b/resolve/nr4.c	Wed Mar 20 11:20:44 2019 +0000
@@ -96,7 +96,7 @@
     i = getExistingIp(ip);
     if (i > -1)
     {
-        if (!MsTimerInterval(records[i].elapsed, FREEZE_TIMEOUT_MS)) return;
+        if (!MsTimerRelative(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 (!MsTimerInterval(records[i].elapsed, FREEZE_TIMEOUT_MS)) return;
+        if (!MsTimerRelative(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 (MsTimerInterval(pr->elapsed, CACHE_TIMEOUT_MS)) pr->state = STATE_EMPTY;
+    if (MsTimerRelative(pr->elapsed, CACHE_TIMEOUT_MS)) pr->state = STATE_EMPTY;
 }
 static void nextProtocol(struct record* pr)
 {
-    if (pr->state == STATE_SENT && MsTimerInterval(pr->elapsed, REPLY_TIMEOUT_MS) && pr->protocol)
+    if (pr->state == STATE_SENT && MsTimerRelative(pr->elapsed, REPLY_TIMEOUT_MS) && pr->protocol)
     {
         pr->protocol = DnsGetNextProtocol4(pr->protocol);
         if (pr->protocol)