mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2024-11-22 08:16:25 -06:00
Now with a valid style designator for RTT
This commit is contained in:
parent
aeae94cfcc
commit
5afec727e8
@ -86,7 +86,7 @@ export function formatRtt(rtt) {
|
|||||||
export function formatRetransmit(retransmits) {
|
export function formatRetransmit(retransmits) {
|
||||||
let percent = Math.min(100, retransmits) / 100;
|
let percent = Math.min(100, retransmits) / 100;
|
||||||
let color = lerpColor([0, 255, 0], [255, 0, 0], percent);
|
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) {
|
export function formatCakeStat(n) {
|
||||||
|
Loading…
Reference in New Issue
Block a user