Skip to content

Commit

Permalink
[ISSUE #3192] Make free disk value more accurate
Browse files Browse the repository at this point in the history
make free disk value more accurate
  • Loading branch information
makabakaboom committed Jul 30, 2021
1 parent 1eaa38f commit d067bfc
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1445,7 +1445,7 @@ private HashMap<String, String> prepareRuntimeInfo() {

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;
Expand Down

0 comments on commit d067bfc

Please sign in to comment.