File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -3634,18 +3634,20 @@ function liveData() {
36343634 } else {
36353635 var tempDate = new Date ( frame [ frame . length - 1 ] . time_received ) . getTime ( )
36363636 }
3637- if ( ( dateNow - tempDate ) < 30000 ) {
3637+ if ( ( dateNow - tempDate ) < 45000 ) {
36383638 var test = formatData ( frame , true ) ;
36393639 if ( clientActive ) {
36403640 live_data_buffer . positions . position . push . apply ( live_data_buffer . positions . position , test . positions . position )
36413641 }
36423642 $ ( "#stTimer" ) . attr ( "data-timestamp" , dateNow ) ;
3643- $ ( "#stText" ) . text ( "websocket |" ) ;
3643+ $ ( "#stText" ) . text ( "websocket (" + ( ( dateNow - tempDate ) / 1000 ) . toFixed ( 1 ) + " s) |") ;
36443644 } else if ( ( dateNow - new Date ( frame . time_received ) . getTime ( ) ) > 150000 ) {
3645- $ ( "#stText" ) . text ( "data error |" ) ;
3645+ $ ( "#stText" ) . text ( "data error (" + ( ( dateNow - tempDate ) / 1000 ) . toFixed ( 1 ) + " s) |" ) ;
3646+ console . log ( "WebSockets Error: Data Age was " + ( ( dateNow - tempDate ) / 1000 ) . toFixed ( 1 ) + " s, frame length: " + frame . length ) ;
36463647 refresh ( ) ;
36473648 } else {
3648- $ ( "#stText" ) . text ( "data error |" ) ;
3649+ $ ( "#stText" ) . text ( "data error (" + ( ( dateNow - tempDate ) / 1000 ) . toFixed ( 1 ) + " s) |" ) ;
3650+ console . log ( "WebSockets Error: Data Age was " + ( ( dateNow - tempDate ) / 1000 ) . toFixed ( 1 ) + " s, frame length: " + frame . length ) ;
36493651 }
36503652 }
36513653 }
You can’t perform that action at this time.
0 commit comments