Now with a valid style designator for RTT

This commit is contained in:
Herbert Wolverson 2024-07-19 12:33:57 -05:00
parent aeae94cfcc
commit 5afec727e8

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 color=" + color + ">■</span>" + retransmits + "</span>";
return "<span style='color: '" + color + "'>■</span>" + retransmits + "</span>";
}
export function formatCakeStat(n) {