Now with a valid style designator for RTT

This commit is contained in:
Herbert Wolverson 2024-07-19 12:34:57 -05:00
parent 5afec727e8
commit 185ad8c424

View File

@ -86,7 +86,7 @@ export function formatRtt(rtt) {
export function formatRetransmit(retransmits) {
let percent = Math.min(100, retransmits) / 100;
let color = lerpColor([0, 255, 0], [255, 0, 0], percent);
return "<span style='color: '" + color + "'>■</span>" + retransmits + "</span>";
return "<span style='color: " + color + "'>■</span>" + retransmits + "</span>";
}
export function formatCakeStat(n) {