Skip to content

Commit

Permalink
Updated some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCrankLarson committed Sep 6, 2020
1 parent 26d6411 commit e99c16d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions DataCollator/NotificationServer.cs
Expand Up @@ -214,6 +214,7 @@ public void ListenerCallback(IAsyncResult result)
string requestUri = System.Web.HttpUtility.UrlDecode(request.RawUrl.Substring(14).ToLower());
Log($"{context.Request.RemoteEndPoint.Address}: {request.RawUrl.Substring(14)}");

// This is really messy and will be tidied at some point
Action action;
if (requestUri.StartsWith("status"))
{
Expand Down
2 changes: 2 additions & 0 deletions EDTracking/JournalReader.cs
Expand Up @@ -40,6 +40,8 @@ private void _statusCheckTimer_Elapsed(object sender, System.Timers.ElapsedEvent

private void FindActiveJournalFile()
{
// Journal files are named Journal.200906152959.01.log, which is Journal.yymmddhhmmss.01.log
// However, we are probably interested in the Journal.cache file this seems to contain recent events
string journalPrefix = $"Journal.{DateTime.UtcNow:yy:MM:dd}";
}

Expand Down
2 changes: 1 addition & 1 deletion FormTracker.cs
Expand Up @@ -218,7 +218,7 @@ private void ProcessStatusFileUpdate(string statusFile)
{
// E: D status.json file does not include milliseconds in the timestamp. We want milliseconds, so we add our own timestamp
// This also gives us polling every five seconds in case the commander stops moving (as soon as they move, the new status should be picked up)
// Turns out milliseconds is pointless as E: D is very unlikely to generate a new status file more than once a second (or we won't detect it), but
// Turns out milliseconds is pointless as E: D is very unlikely to generate a new status file more than once a second (and/or we won't detect it), but
// we'll keep them in case this changes in future.
UpdateUI(new EDEvent(status,textBoxClientId.Text, DateTime.Now));
}
Expand Down

0 comments on commit e99c16d

Please sign in to comment.