Fix undefined in the retransmits counter.

This commit is contained in:
Herbert Wolverson 2024-11-21 14:47:57 -06:00
parent daf6d78a57
commit a1253f7cce

View File

@ -62,7 +62,7 @@ export class TopNSankey extends DashboardGraph {
};
if (isRedacted()) label.backgroundColor = label.color;
let name = r.ip_address+ " (" + scaleNumber(r.bits_per_second.down, 0) + ", " + r.tcp_retransmits.down + "/" + r.tcp_retransmits.up + ")";
let name = r.ip_address+ " (" + scaleNumber(r.bits_per_second.down, 0) + ", " + r.tcp_retransmits[0].toFixed(1) + "/" + r.tcp_retransmits[1].toFixed(1) + ")";
let bytes = r.bits_per_second.down / 8;
let bytesAsMegabits = bytes / 1000000;
let maxBytes = r.plan.down / 8;