From 07a68b8d93aa059968a9709f2c81e6625338032c Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期一, 21 十一月 2022 20:19:49 +0800 Subject: [PATCH] 12 --- src/main/java/com/lf/server/config/ScheduleConfig.java | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/lf/server/config/ScheduleConfig.java b/src/main/java/com/lf/server/config/ScheduleConfig.java index 27cc2ff..e35b633 100644 --- a/src/main/java/com/lf/server/config/ScheduleConfig.java +++ b/src/main/java/com/lf/server/config/ScheduleConfig.java @@ -43,7 +43,7 @@ } } - @Scheduled(fixedRate = 30 * 1000) + @Scheduled(fixedRate = 20 * 1000) public void checkSystemStatus() { try { JSONObject jsonObject = new JSONObject(); @@ -59,7 +59,7 @@ } } - @Scheduled(fixedRate = 60 * 1000) + @Scheduled(fixedRate = 40 * 1000) public void countSystemStatus() { // noinspection AlibabaRemoveCommentedCode try { @@ -69,10 +69,10 @@ jsonObject.put("resUseCount", scheduleService.countResStatus()); // 鐢ㄦ埛鐧诲綍鐘舵�� sys_login - // jsonObject.put("userLoginCount", scheduleService.userLoginCount()); + jsonObject.put("userLoginCount", scheduleService.userLoginCount()); // 璧勬簮鎿嶄綔鐘舵�� sys_operate - // jsonObject.put("operateCount", scheduleService.operateCount()); + jsonObject.put("operateCount", scheduleService.operateCount()); // 璧勬簮璋冪敤鐘舵�� -- Gitblit v1.9.3