mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2024-11-21 15:57:24 -06:00
For consistency, scale nanos RTT in the same way
This commit is contained in:
parent
d6ecea8d37
commit
0580d2ddfa
@ -113,8 +113,6 @@ export function formatPercent(percent, digits=0) {
|
||||
export function rttNanosAsSpan(rttNanos, precision=0) {
|
||||
let rttInMs = Math.min(200, rttNanos / 1000000);
|
||||
let color = lerpGreenToRedViaOrange(200 - rttInMs, 200);
|
||||
let html = "<span style='color: " + color + "'>";
|
||||
html += scaleNanos(rttNanos, precision);
|
||||
html += "</span>";
|
||||
let html = "<span style='color: " + color + "'>■<span> " + scaleNanos(rttNanos, precision);
|
||||
return html;
|
||||
}
|
Loading…
Reference in New Issue
Block a user