Skip to content

Commit

Permalink
sd log end file
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Nov 24, 2023
1 parent d28253b commit 323ec4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ public void onEntry(String name, String javaName, String folder, String prepend,
lazyFile.close();

outputValueConsumer.endFile();
// sdLogWriter.endFile();

// return outputChannelWriter.getSize();
return outputsSections.sensorTsPosition;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ public SdLogWriter(PrintStream ps) {
ps.println("\t{packedTime, GAUGE_NAME_TIME, \"sec\", 0},");
}

public void endFile() {
ps.println("};");
}

public void writeSdLogs(ParseState parser, String sourceName) {
// Assume the last struct is the one we want...
Struct s = parser.getStructs().get(parser.getStructs().size() - 1);
Expand Down

0 comments on commit 323ec4d

Please sign in to comment.