summaryrefslogtreecommitdiff
path: root/NodeMapTest.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2026-09-29 21:39:29 +0100
committerDave Hibberd <hibby@debian.org>2026-09-29 21:39:29 +0100
commit03996c90ad158bac0c79a96ac48a9ee18b55ffe0 (patch)
treea55c533acacea4597ee1a8f44cd5b8fc762a36e2 /NodeMapTest.c
parent98e42ffd455139c0f3ccbf4a670016dc0724a032 (diff)
parent592e5967b8fcd79423802071319d0c646f2080df (diff)
Update upstream source from tag 'upstream/6.0.25.41+repack'
Update to upstream version '6.0.25.41+repack' with Debian dir 3802bee500dcde3664bf28cab0ae7ef27f5ff7bd
Diffstat (limited to 'NodeMapTest.c')
-rw-r--r--NodeMapTest.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/NodeMapTest.c b/NodeMapTest.c
index 7b0b735..26fb86f 100644
--- a/NodeMapTest.c
+++ b/NodeMapTest.c
@@ -965,7 +965,7 @@ int main(int argc, char * argv[])
restartTime = time(NULL) + 120; // Restart in 2 mins
}
- HostEnt2 = gethostbyname ("10.8.0.38");
+ HostEnt2 = gethostbyname ("192.168.193.142");
if (HostEnt2)
memcpy(&txaddr2.sin_addr.s_addr,HostEnt2->h_addr,4);
@@ -1043,6 +1043,8 @@ int main(int argc, char * argv[])
continue;
ret = sendto(sock, RXBUFFER, nLength, 0, (struct sockaddr *)&txaddr, sizeof(txaddr));
+
+// ret = sendto(sock, RXBUFFER, nLength, 0, (struct sockaddr *)&txaddr2, sizeof(txaddr2));
if (ret == -1)
perror("sendto 1");
@@ -1709,16 +1711,18 @@ void GenerateOutputFiles(time_t Now)
// We need unheard nodes in the file for the MH list. Display on main map in blue
- if (Age < 3600)
+ if (Age < 3600 * 6)
Colour = 'G';
else if (Age < 86400)
+ Colour ='Y';
+ else if (Age < 2 * 86400)
Colour ='R';
else
{
if (Node->Lat != 0.0 && Node->Lon != 0.0 && Node->LastHeard == 0)
Colour = 'B';
else
- Colour ='0';
+ continue; //Colour ='0';
}
HeardString[0] = 0;