trying to fix build

This commit is contained in:
rusefillc 2022-04-17 16:12:42 -04:00
parent 4db874a607
commit c00a24e9fd
3 changed files with 3 additions and 2 deletions

Binary file not shown.

View File

@ -145,7 +145,7 @@ public class TSProjectConsumer implements ConfigurationConsumer {
@Override
public void handleEndStruct(ReaderState readerState, ConfigStructure structure) throws IOException {
state.variableRegistry.register(structure.name + "_size", structure.getTotalSize());
tsOutput.run(readerState, structure, 0);
totalTsSize = tsOutput.run(readerState, structure, 0);
if (state.stack.isEmpty()) {
state.variableRegistry.register("TOTAL_CONFIG_SIZE", totalTsSize);

View File

@ -31,7 +31,7 @@ public class TsOutput {
return settingContextHelp;
}
public void run(ReaderState state, ConfigStructure structure, int sensorTsPosition) throws IOException {
public int run(ReaderState state, ConfigStructure structure, int sensorTsPosition) throws IOException {
FieldsStrategy strategy = new FieldsStrategy() {
@Override
public int writeOneField(FieldIterator it, String prefix, int tsPosition) throws IOException {
@ -121,6 +121,7 @@ public class TsOutput {
if (state.stack.isEmpty()) {
tsHeader.append("; total TS size = " + sensorTsPosition + EOL);
}
return sensorTsPosition;
}
private String handleTsInfo(String tsInfo, int multiplierIndex) {