File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,8 @@ function FlightLogIndex(logData) {
59
59
matches ,
60
60
throttleTotal ,
61
61
eventInThisChunk = null ,
62
- parsedHeader ;
62
+ parsedHeader ,
63
+ sawEndMarker = false ;
63
64
64
65
try {
65
66
parser . parseHeader ( logBeginOffsets [ i ] , logBeginOffsets [ i + 1 ] ) ;
@@ -160,6 +161,10 @@ function FlightLogIndex(logData) {
160
161
if ( intraIndex . times . length > 0 ) {
161
162
intraIndex . hasEvent [ intraIndex . times . length - 1 ] = true ;
162
163
}
164
+
165
+ if ( frame . event == FlightLogEvent . LOG_END ) {
166
+ sawEndMarker = true ;
167
+ }
163
168
break ;
164
169
case 'S' :
165
170
lastSlow = frame . slice ( 0 ) ;
@@ -183,7 +188,11 @@ function FlightLogIndex(logData) {
183
188
184
189
// Did we not find any events in this log?
185
190
if ( intraIndex . minTime === false ) {
186
- intraIndex . error = "Log is truncated, contains no data" ;
191
+ if ( sawEndMarker ) {
192
+ intraIndex . error = "Logging was paused, no data recorded" ;
193
+ } else {
194
+ intraIndex . error = "Log is truncated, contains no data" ;
195
+ }
187
196
}
188
197
189
198
intraframeDirectories . push ( intraIndex ) ;
You can’t perform that action at this time.
0 commit comments