summaryrefslogtreecommitdiff
path: root/NodeMapTest.c
diff options
context:
space:
mode:
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;