Skip to content

Commit cc887b7

Browse files
committed
Merge branch 'hotfix-1.7.1'
2 parents d8b3b5c + 96a415b commit cc887b7

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

js-apps/meep-frontend/src/js/util/scenario-utils.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1660,11 +1660,13 @@ function addType(tooltip, type) {
16601660
tooltip.innerHTML += '<br>type: ' + type;
16611661
}
16621662
function 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
}
16691671
function addConnectivityModel(tooltip, model) {
16701672
tooltip.innerHTML += '<br>connectivity model: ' + (model || '');

0 commit comments

Comments
 (0)