File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
js-apps/meep-frontend/src/js/util Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1660,11 +1660,13 @@ function addType(tooltip, type) {
16601660 tooltip . innerHTML += '<br>type: ' + type ;
16611661}
16621662function addNetChar ( tooltip , netChar ) {
1663- tooltip . innerHTML += '<br>latency: ' + ( netChar . latency || 0 ) + ' ms' ;
1664- tooltip . innerHTML += '<br>jitter: ' + ( netChar . latencyVariation || '0' ) + ' ms' ;
1665- tooltip . innerHTML += '<br>packet loss: ' + ( netChar . packetLoss || '0' ) + ' %' ;
1666- tooltip . innerHTML += '<br>UL throughput: ' + ( netChar . throughputUl || 0 ) + ' mb/s' ;
1667- tooltip . innerHTML += '<br>DL throughput: ' + ( netChar . throughputDl || 0 ) + ' mb/s' ;
1663+ if ( netChar ) {
1664+ tooltip . innerHTML += '<br>latency: ' + ( netChar . latency || 0 ) + ' ms' ;
1665+ tooltip . innerHTML += '<br>jitter: ' + ( netChar . latencyVariation || '0' ) + ' ms' ;
1666+ tooltip . innerHTML += '<br>packet loss: ' + ( netChar . packetLoss || '0' ) + ' %' ;
1667+ tooltip . innerHTML += '<br>UL throughput: ' + ( netChar . throughputUl || 0 ) + ' mb/s' ;
1668+ tooltip . innerHTML += '<br>DL throughput: ' + ( netChar . throughputDl || 0 ) + ' mb/s' ;
1669+ }
16681670}
16691671function addConnectivityModel ( tooltip , model ) {
16701672 tooltip . innerHTML += '<br>connectivity model: ' + ( model || '' ) ;
You can’t perform that action at this time.
0 commit comments