You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2021/08/11 02:50:29 UTC

[GitHub] [rocketmq] aaron-ai opened a new issue #3245: Utils#getDiskPartitionSpaceUsedPercent could not indicate the real disk used ratio.

aaron-ai opened a new issue #3245:
URL: https://github.com/apache/rocketmq/issues/3245


   Actually some disk space is free but not usable, which cause the result is smaller than the actual value. we could use algorithm of linux 'df' to get the actual used ratio.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] WonderMing13 commented on issue #3245: Utils#getDiskPartitionSpaceUsedPercent could not indicate the real disk used ratio.

Posted by GitBox <gi...@apache.org>.
WonderMing13 commented on issue #3245:
URL: https://github.com/apache/rocketmq/issues/3245#issuecomment-1042596195


   > > @aaron-ai What is the variable roundNum mean? Is the variable entireSpace can replace variable totalSpace? I don't understand this code, can you give me some pointers?
   > 
   > The roundNum is used to round up. For why not use totalSpace, you need to understand the difference between File.getFreeSpace() and File.getUsableSpace(), refer to: https://stackoverflow.com/questions/21439596/difference-between-getfreespace-and-getusablespace-of-file
   
   Thank you very much for figuring it out according to your instructions.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] RongtongJin commented on issue #3245: Utils#getDiskPartitionSpaceUsedPercent could not indicate the real disk used ratio.

Posted by GitBox <gi...@apache.org>.
RongtongJin commented on issue #3245:
URL: https://github.com/apache/rocketmq/issues/3245#issuecomment-917593629


   Merged


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] RongtongJin closed issue #3245: Utils#getDiskPartitionSpaceUsedPercent could not indicate the real disk used ratio.

Posted by GitBox <gi...@apache.org>.
RongtongJin closed issue #3245:
URL: https://github.com/apache/rocketmq/issues/3245


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] WonderMing13 commented on issue #3245: Utils#getDiskPartitionSpaceUsedPercent could not indicate the real disk used ratio.

Posted by GitBox <gi...@apache.org>.
WonderMing13 commented on issue #3245:
URL: https://github.com/apache/rocketmq/issues/3245#issuecomment-1038882618


   @aaron-ai What is the variable roundNum mean? Is the variable entireSpace can replace  variable totalSpace? 
   I don't understand this code, can you give me some pointers?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] Git-Yang commented on issue #3245: Utils#getDiskPartitionSpaceUsedPercent could not indicate the real disk used ratio.

Posted by GitBox <gi...@apache.org>.
Git-Yang commented on issue #3245:
URL: https://github.com/apache/rocketmq/issues/3245#issuecomment-1041140454


   > @aaron-ai What is the variable roundNum mean? Is the variable entireSpace can replace variable totalSpace? I don't understand this code, can you give me some pointers?
   
   The roundNum is used to round up.
   For why not use totalSpace, you need to understand the difference between File.getFreeSpace() and File.getUsableSpace(), refer to: https://stackoverflow.com/questions/21439596/difference-between-getfreespace-and-getusablespace-of-file


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org