Commits

Friedrich Kastner-Masilko committed 1a0c5c3

OMPClient: minor code cleanup

  • Participants
  • Parent commits 45c8c87

Comments (0)

Files changed (1)

File Orbitersdk/samples/OMP/OMPClient/OMPClient.cpp

 							dinfo.removedToNeighbours[nb->Source->ID][ip]=dinfo.deletepings;
 							delete nb;
 						}
-						else if (nb->TargetID==id->GlobalID->ID)
-						{
-							nb->Source->refcount--;
-							//Don't add reverse neighbourship to removal list
-						}
+						else if (nb->TargetID==id->GlobalID->ID) nb->Source->refcount--; //Don't add reverse neighbourship to removal list
 						else continue;
 						sprintf(line, "%d:%d:%d", nb->Source->ID, nb->ip, nb->port);
 						clientData.Neighbours->del(line);
 										sprintf(line, "%d", pac.contentKA.GlobalID);
 										if ((entry1=(IDload *)threaddata->user->GlobalsByID->get(line))!=0)
 										{
-											sprintf(line, "[L%d]G%d ?", pac.contentKA.LocalID, pac.contentKA.GlobalID);
+											sprintf(line, "[L%d]G%d", pac.contentKA.LocalID, pac.contentKA.GlobalID);
 											tlogging(7, line);
 											break;
 										}
 										if (threaddata->user->timestamp<pac.contentGI.tsSent)
 										{											
 											threaddata->user->timestamp=pac.contentGI.tsSent;
-										EnterCriticalSection(&image);
-											gimage.MJD=pac.contentGI.MJD;
-											gimage.last_MJD_update=pac.contentGI.tsSent;
-										LeaveCriticalSection(&image);
+											EnterCriticalSection(&image);
+												gimage.MJD=pac.contentGI.MJD;
+												gimage.last_MJD_update=pac.contentGI.tsSent;
+											LeaveCriticalSection(&image);
 											sprintf(line, "%sGI %6.3fs", line, get_global_timestamp()-pac.contentGI.tsSent);
 											tlogging(5, line);
 										}		
 										else
 										{
-											sprintf(line, "%sGI Packet's MJD %6.3fs too late, using info anyway",
+											sprintf(line, "%sGI packet's MJD %6.3fs too late, using rest of info anyway",
 												line,
 												threaddata->user->timestamp-pac.contentGI.tsSent);
 											tlogging(1, line);