Changeset 403 for trunk/EventBenchConsole/src/de/ugoe/cs
- Timestamp:
- 04/02/12 16:17:06 (13 years ago)
- Location:
- trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/windows
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/windows/LogPreprocessor.java
r223 r403 160 160 String[] lines = FileTools.getLinesFromFile(source, false); 161 161 String incompleteLine = ""; 162 // Open source and read line by line163 162 for (String currentLine : lines) { 164 163 if (currentLine.contains("UL: <session>")) { … … 189 188 byte[] decoded = decoder.decode(actualLine); 190 189 currentContent = new String(decoded, "UTF-16LE"); 191 currentContent = currentContent.substring(0, 192 currentContent.length() - 1); 190 if( currentContent.length()!=0 ) { 191 currentContent = currentContent.substring(0, 192 currentContent.length() - 1); 193 } 193 194 } else { 194 195 currentContent = actualLine; -
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/windows/MFCLogParser.java
r297 r403 210 210 } else if (qName.equals("session")) { 211 211 sequenceSplitter.endSession(); 212 sequences.add(sequenceSplitter.getSequence()); 212 List<WindowsEvent> seq = sequenceSplitter.getSequence(); 213 if( seq!=null && !seq.isEmpty() ) { 214 sequences.add(seq); 215 } 213 216 Console.traceln("end of session"); 214 217 }
Note: See TracChangeset
for help on using the changeset viewer.