From 02bbdb18deaa4201ec14b70f47a7f51dabd0219b Mon Sep 17 00:00:00 2001
From: cppla <i@cpp.la>
Date: Mon, 31 Oct 2022 14:01:42 +0800
Subject: [PATCH] update lost style

---
 web/js/serverstatus.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/web/js/serverstatus.js b/web/js/serverstatus.js
index 97f0879..a29348c 100644
--- a/web/js/serverstatus.js
+++ b/web/js/serverstatus.js
@@ -266,7 +266,9 @@ function uptime() {
 				ExpandRow[0].children["expand_lost"].innerHTML = "丢包:联通/电信/移动: " + PING_10010 + "% / " + PING_189 + "% / " + PING_10086 + "%"
 
                 if (PING_10010 >= 20 || PING_189 >= 20 || PING_10086 >= 20)
-                    TableRow.children["ping"].children[0].children[0].className = "progress-bar progress-bar-warning";
+                    TableRow.children["ping"].children[0].children[0].className = "progress-bar progress-bar-danger";
+                else if (PING_10010 >= 10 || PING_189 >= 10 || PING_10086 >= 10)
+                	TableRow.children["ping"].children[0].children[0].className = "progress-bar progress-bar-warning";
                 else
                     TableRow.children["ping"].children[0].children[0].className = "progress-bar progress-bar-success";
 	            TableRow.children["ping"].children[0].children[0].innerHTML = PING_10010 + "%💻" + PING_189 + "%💻" + PING_10086 + "%";