rocketmq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jinrongt...@apache.org
Subject [rocketmq] branch develop updated: [ISSUE #3192] Make free disk value more accurate
Date Fri, 30 Jul 2021 13:56:48 GMT
This is an automated email from the ASF dual-hosted git repository.

jinrongtong pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git


The following commit(s) were added to refs/heads/develop by this push:
     new d067bfc  [ISSUE #3192] Make free disk value more accurate
d067bfc is described below

commit d067bfc21410c11dc3c99bb2b67403aa4b344286
Author: makabakaboom <402879834@qq.com>
AuthorDate: Fri Jul 30 21:56:32 2021 +0800

    [ISSUE #3192] Make free disk value more accurate
    
    make free disk value more accurate
---
 .../java/org/apache/rocketmq/broker/processor/AdminBrokerProcessor.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/broker/src/main/java/org/apache/rocketmq/broker/processor/AdminBrokerProcessor.java
b/broker/src/main/java/org/apache/rocketmq/broker/processor/AdminBrokerProcessor.java
index 97ca51d..c481d14 100644
--- a/broker/src/main/java/org/apache/rocketmq/broker/processor/AdminBrokerProcessor.java
+++ b/broker/src/main/java/org/apache/rocketmq/broker/processor/AdminBrokerProcessor.java
@@ -1445,7 +1445,7 @@ public class AdminBrokerProcessor extends AsyncNettyRequestProcessor
implements
 
         java.io.File commitLogDir = new java.io.File(this.brokerController.getMessageStoreConfig().getStorePathRootDir());
         if (commitLogDir.exists()) {
-            runtimeInfo.put("commitLogDirCapacity", String.format("Total : %s, Free : %s.",
MixAll.humanReadableByteCount(commitLogDir.getTotalSpace(), false), MixAll.humanReadableByteCount(commitLogDir.getFreeSpace(),
false)));
+            runtimeInfo.put("commitLogDirCapacity", String.format("Total : %s, Free : %s.",
MixAll.humanReadableByteCount(commitLogDir.getTotalSpace(), false), MixAll.humanReadableByteCount(commitLogDir.getUsableSpace(),
false)));
         }
 
         return runtimeInfo;

Mime
View raw message