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(); }