Skip to content
Snippets Groups Projects
Commit e65a28c1 authored by Brutzman, Don's avatar Brutzman, Don
Browse files

improved diagnostics

parent b6883876
No related branches found
No related tags found
No related merge requests found
...@@ -164,8 +164,10 @@ public class Player ...@@ -164,8 +164,10 @@ public class Player
private void showCounts() private void showCounts()
{ {
// use carriage return \r for transient display output as a run-time developer diagnostic
// (possibly as part of earlier diagnosis of threading-related problems with dropped packets)
if (scenarioPduCount != null) if (scenarioPduCount != null)
System.out.print(pduCount + " " + ++scenarioPduCount + "\r"); System.out.print(pduCount + " " + ++scenarioPduCount + "..." + "\r"); // TODO where are the ... ? not appearing in output
else else
System.out.print(pduCount + "\r"); System.out.print(pduCount + "\r");
showPduCountsOneTime = false; showPduCountsOneTime = false;
...@@ -205,6 +207,7 @@ public class Player ...@@ -205,6 +207,7 @@ public class Player
showPduCountsOneTime = true; // get the first one in there showPduCountsOneTime = true; // get the first one in there
} }
else if (s.startsWith(STOP_COMMENT_MARKER)) { else if (s.startsWith(STOP_COMMENT_MARKER)) {
System.out.print("Total PDUs: ");
showCounts(); showCounts();
System.out.println(); System.out.println();
System.out.println("End of replay from " + f.getName()); System.out.println("End of replay from " + f.getName());
......
...@@ -127,7 +127,7 @@ public class Recorder implements PduReceiver ...@@ -127,7 +127,7 @@ public class Recorder implements PduReceiver
private void writeHeader() throws IOException private void writeHeader() throws IOException
{ {
String template = "Beginning of DIS capture file, %s."; String template = "Beginning of DIS capture file, %s.";
String startComment = String.format(template, logFile.getName()); String startComment = String.format(template, logFile.getName() + " (show transient progressing PDU count, then final total)");
bufferedWriter.write(START_COMMENT_MARKER + startComment); bufferedWriter.write(START_COMMENT_MARKER + startComment);
bufferedWriter.newLine(); bufferedWriter.newLine();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment