From 8ce81de2241ad470be4e83e78ccf22c5ec0fb0be Mon Sep 17 00:00:00 2001 From: lone-cloud Date: Wed, 3 Jun 2026 19:34:25 -0700 Subject: [PATCH] Remove color coding from success rate metric --- dashboard.js | 11 ++--------- index.html | 2 +- styles.css | 8 -------- 3 files changed, 3 insertions(+), 18 deletions(-) diff --git a/dashboard.js b/dashboard.js index 911a03a..21b4672 100644 --- a/dashboard.js +++ b/dashboard.js @@ -223,15 +223,8 @@ async function fetchStats() { document.getElementById("total").textContent = total; document.getElementById("timeouts").textContent = timeouts; const rateEl = document.getElementById("success-rate-small"); - const statusLabel = - successRate >= 70 ? "Good" : successRate >= 40 ? "Warning" : "Critical"; - rateEl.innerHTML = `${successRate.toFixed(1)}% (${statusLabel})`; - rateEl.className = - successRate >= 70 - ? "success-rate" - : successRate >= 40 - ? "warn-rate" - : "error"; + rateEl.textContent = `${successRate.toFixed(1)}%`; + rateEl.className = ""; document.getElementById("tor-traffic").textContent = `${formatBytes(torInbound)} / ${formatBytes(torOutbound)}`; document.getElementById("memory").textContent = formatBytes(memory); diff --git a/index.html b/index.html index 1ec5dff..24d89b3 100644 --- a/index.html +++ b/index.html @@ -21,7 +21,7 @@ Rate Percentage of successful connections vs total attempts - - + -
Uptime diff --git a/styles.css b/styles.css index 93c0b4f..fbb6d8c 100644 --- a/styles.css +++ b/styles.css @@ -231,14 +231,6 @@ tr:last-child td { color: var(--error-color); } -.success-rate { - color: var(--success-color); -} - -.warn-rate { - color: var(--warn-color); -} - .flag { font-size: 1.25rem; margin-right: var(--space-2);