From 0506486bb7cda87354ffb9496803e5361582c3c7 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期三, 19 十月 2022 10:11:26 +0800
Subject: [PATCH] 1

---
 src/main/java/com/lf/server/service/all/ScheduleService.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/lf/server/service/all/ScheduleService.java b/src/main/java/com/lf/server/service/all/ScheduleService.java
index e1a6a42..76cb65a 100644
--- a/src/main/java/com/lf/server/service/all/ScheduleService.java
+++ b/src/main/java/com/lf/server/service/all/ScheduleService.java
@@ -3,7 +3,7 @@
 import com.lf.server.entity.all.RedisCacheKey;
 import com.lf.server.entity.sys.ResEntity;
 import com.lf.server.entity.sys.UserEntity;
-import com.lf.server.helper.StringHelper;
+import com.lf.server.helper.FileHelper;
 import com.lf.server.service.sys.ResService;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
@@ -103,9 +103,9 @@
 
         // 鍓╀綑
         long surplusByte = memory.getAvailable();
-        map.put("totalMem", StringHelper.formatByte(totalByte));
-        map.put("use", StringHelper.formatByte(totalByte - surplusByte));
-        map.put("remainMem", StringHelper.formatByte(surplusByte));
+        map.put("totalMem", FileHelper.formatByte(totalByte));
+        map.put("use", FileHelper.formatByte(totalByte - surplusByte));
+        map.put("remainMem", FileHelper.formatByte(surplusByte));
         map.put("usage", new DecimalFormat("#.##%").format((totalByte - surplusByte) * 1.0 / totalByte));
 
         return map;

--
Gitblit v1.9.3