From b7000cbf5e67e90abe53e96a4ea931afbf906e24 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期五, 16 九月 2022 18:51:47 +0800
Subject: [PATCH] l2数据计算优化

---
 gui.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/gui.py b/gui.py
index 1e4a3a7..23ddccf 100644
--- a/gui.py
+++ b/gui.py
@@ -237,8 +237,12 @@
             print("refresh-l2-data")
             for client_id in code_sv_map:
                 ip = data_process.getActiveClientIP(client_id)
+                ths_dead=data_process.getTHSState(client_id)
                 if ip is not None and len(ip) > 0:
-                    client_state[client_id].configure(text="(鍦ㄧ嚎锛歿})".format(ip), foreground="#008000")
+                    if ths_dead:
+                        client_state[client_id].configure(text="(鍦ㄧ嚎锛歿})".format(ip), foreground="#FF7F27")
+                    else:
+                        client_state[client_id].configure(text="(鍦ㄧ嚎锛歿})".format(ip), foreground="#008000")
                 else:
                     client_state[client_id].configure(text="(绂荤嚎锛氭湭鐭P)", foreground="#999999")
 

--
Gitblit v1.8.0