From 9bce48a9f30f7d80c43f43f46d40df20fcb00e15 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期五, 03 二月 2023 09:39:59 +0800 Subject: [PATCH] 1 --- 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..3251821 100644 --- a/src/main/java/com/lf/server/config/ScheduleConfig.java +++ b/src/main/java/com/lf/server/config/ScheduleConfig.java @@ -23,7 +23,7 @@ private static final Log log = LogFactory.getLog(ScheduleConfig.class); - @Scheduled(fixedRate = 10 * 1000) + @Scheduled(fixedRate = 15 * 1000) public void pushMonitorInfo() { try { JSONObject jsonObject = new JSONObject(); @@ -59,7 +59,7 @@ } } - @Scheduled(fixedRate = 60 * 1000) + @Scheduled(fixedRate = 30 * 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