For consistency, scale nanos RTT in the same way

This commit is contained in:
Herbert Wolverson 2024-07-19 16:19:10 -05:00
parent d6ecea8d37
commit 0580d2ddfa

View File

@ -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;
}