mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2024-11-21 15:57:24 -06:00
Fix undefined in the retransmits counter.
This commit is contained in:
parent
daf6d78a57
commit
a1253f7cce
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user