From f7695bce78152d3f122d247999e85296f89f2fe6 Mon Sep 17 00:00:00 2001 From: Matthew Date: Sun, 21 Apr 2024 09:41:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=BF=87=E5=8E=BB=E4=B8=80?= =?UTF-8?q?=E5=91=A8=E7=9A=84=E9=87=8D=E5=90=AF=E6=AC=A1=E6=95=B0=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/xypower/mpmaster/AppMaster.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/mpmaster/src/main/java/com/xypower/mpmaster/AppMaster.java b/mpmaster/src/main/java/com/xypower/mpmaster/AppMaster.java index 3435abc8..36212c22 100644 --- a/mpmaster/src/main/java/com/xypower/mpmaster/AppMaster.java +++ b/mpmaster/src/main/java/com/xypower/mpmaster/AppMaster.java @@ -281,7 +281,7 @@ public class AppMaster { */ int[] items = MpMasterService.getStats(startTime); - if (items == null || items.length != 10) { + if (items == null || items.length < 12) { return; } @@ -302,6 +302,14 @@ public class AppMaster { if (items[9] > 0) { stats.add(new Pair("i1RebootTimes", Integer.toString(items[9]))); } + + if (items[10] > 0) { + stats.add(new Pair("rebootTimesW", Integer.toString(items[10]))); + } + + if (items[11] > 0) { + stats.add(new Pair("i1RebootTimesW", Integer.toString(items[11]))); + } } catch (Exception ex) { ex.printStackTrace(); }