From 519ccccd7b2deb08bfbb8408fb98c637d73ec5da Mon Sep 17 00:00:00 2001 From: lin <648540858@qq.com> Date: Wed, 21 Jan 2026 22:52:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E6=97=B6=E5=85=B3=E9=97=AD=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iot/vmp/conf/SystemInfoTimerTask.java | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/conf/SystemInfoTimerTask.java b/src/main/java/com/genersoft/iot/vmp/conf/SystemInfoTimerTask.java index 0c6eb2359..581fd5694 100644 --- a/src/main/java/com/genersoft/iot/vmp/conf/SystemInfoTimerTask.java +++ b/src/main/java/com/genersoft/iot/vmp/conf/SystemInfoTimerTask.java @@ -20,22 +20,22 @@ public class SystemInfoTimerTask { @Autowired private IRedisCatchStorage redisCatchStorage; - @Scheduled(fixedRate = 2000) //每1秒执行一次 - public void execute(){ - try { - double cpuInfo = SystemInfoUtils.getCpuInfo(); - redisCatchStorage.addCpuInfo(cpuInfo); - double memInfo = SystemInfoUtils.getMemInfo(); - redisCatchStorage.addMemInfo(memInfo); - Map networkInterfaces = SystemInfoUtils.getNetworkInterfaces(); - redisCatchStorage.addNetInfo(networkInterfaces); - List> diskInfo =SystemInfoUtils.getDiskInfo(); - redisCatchStorage.addDiskInfo(diskInfo); - } catch (InterruptedException e) { - log.error("[获取系统信息失败] {}", e.getMessage()); - } - - } +// @Scheduled(fixedRate = 2000) //每1秒执行一次 +// public void execute(){ +// try { +// double cpuInfo = SystemInfoUtils.getCpuInfo(); +// redisCatchStorage.addCpuInfo(cpuInfo); +// double memInfo = SystemInfoUtils.getMemInfo(); +// redisCatchStorage.addMemInfo(memInfo); +// Map networkInterfaces = SystemInfoUtils.getNetworkInterfaces(); +// redisCatchStorage.addNetInfo(networkInterfaces); +// List> diskInfo =SystemInfoUtils.getDiskInfo(); +// redisCatchStorage.addDiskInfo(diskInfo); +// } catch (InterruptedException e) { +// log.error("[获取系统信息失败] {}", e.getMessage()); +// } +// +// } }