增加过去一周的重启次数统计

serial
Matthew 1 year ago
parent 0c7f279386
commit f7695bce78

@ -281,7 +281,7 @@ public class AppMaster {
*/ */
int[] items = MpMasterService.getStats(startTime); int[] items = MpMasterService.getStats(startTime);
if (items == null || items.length != 10) { if (items == null || items.length < 12) {
return; return;
} }
@ -302,6 +302,14 @@ public class AppMaster {
if (items[9] > 0) { if (items[9] > 0) {
stats.add(new Pair<String, String>("i1RebootTimes", Integer.toString(items[9]))); stats.add(new Pair<String, String>("i1RebootTimes", Integer.toString(items[9])));
} }
if (items[10] > 0) {
stats.add(new Pair<String, String>("rebootTimesW", Integer.toString(items[10])));
}
if (items[11] > 0) {
stats.add(new Pair<String, String>("i1RebootTimesW", Integer.toString(items[11])));
}
} catch (Exception ex) { } catch (Exception ex) {
ex.printStackTrace(); ex.printStackTrace();
} }

Loading…
Cancel
Save