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 <[email protected]>
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;