web: Only display SCTP totals counters if server supports SCTP

This commit is contained in:
Heikki Hannikainen 2013-04-27 08:52:03 +03:00
parent e6f51491fa
commit 955abd41d7
1 changed files with 2 additions and 1 deletions

View File

@ -777,7 +777,8 @@ function render(d)
if (d['totals']) {
var u = d['totals'];
for (var i in totals_keys) {
u[totals_keys[i]] = calc_rate('totals.' + totals_keys[i], u[totals_keys[i]]);
if (u[totals_keys[i]] !== undefined)
u[totals_keys[i]] = calc_rate('totals.' + totals_keys[i], u[totals_keys[i]]);
}
render_block('totals', totals_table, u);
}