diff --git a/app.py b/app.py index 35a6192..5e2f5e3 100644 --- a/app.py +++ b/app.py @@ -206,9 +206,9 @@ def parse_test_server_output(raw_text: str) -> dict: }) continue - # Cluster 头: "Cluster 0 has 6 boards CCD: ONLINE" + # Cluster 头: "Cluster 0 has 6 boards CCD: ONLINE" (Z1) 或 "Cluster 0 has 6 logic drawers CCD: ONLINE" (Z2) cluster_match = re.match( - r"Cluster\s+(\d+)\s+has\s+(\d+)\s+boards\s+CCD:\s*(\w+)", line + r"Cluster\s+(\d+)\s+has\s+(\d+)\s+(?:boards?|logic\s+drawers?)\s+CCD:\s*(\w+)", line ) if cluster_match and result["racks"]: current_cluster = int(cluster_match.group(1))