File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/js/modules/competing/services Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,11 @@ define(['./_module'], function (app) {
108
108
current . behindByTime = undefined ;
109
109
current . behindStatus = '' ;
110
110
} else {
111
- current . behindByMessages = ( current . lastKnownEventPosition - current . lastCheckpointedEventPosition ) + 1 ;
111
+ if ( current . lastKnownEventPosition == null ) {
112
+ current . behindByMessages = 0 ;
113
+ } else {
114
+ current . behindByMessages = ( current . lastKnownEventPosition - current . lastCheckpointedEventPosition ) + 1 ;
115
+ }
112
116
current . behindByTime = Math . round ( ( current . behindByMessages / current . averageItemsPerSecond ) * 100 ) / 100 ;
113
117
current . behindByTime = isFinite ( current . behindByTime ) ? current . behindByTime : 0 ;
114
118
current . behindStatus = current . behindByMessages + ' / ' + current . behindByTime ;
You can’t perform that action at this time.
0 commit comments