lucas-a-martins commented on code in PR #9043:
URL: https://github.com/apache/cloudstack/pull/9043#discussion_r1676472020


##########
server/src/main/java/com/cloud/server/StatsCollector.java:
##########
@@ -1823,16 +1823,16 @@ public boolean imageStoreHasEnoughCapacity(DataStore 
imageStore) {
         double totalCapacity = imageStoreStats.getCapacityBytes();
         double usedCapacity = imageStoreStats.getByteUsed();
         double threshold = getImageStoreCapacityThreshold();
-        String readableTotalCapacity = FileUtils.byteCountToDisplaySize((long) 
totalCapacity);
-        String readableUsedCapacity = FileUtils.byteCountToDisplaySize((long) 
usedCapacity);
+        String readableTotalCapacity = NumbersUtil.toReadableSize((long) 
totalCapacity);
+        String readableUsedCapacity = NumbersUtil.toReadableSize((long) 
usedCapacity);
 
-        logger.debug(String.format("Verifying image storage [%s]. Capacity: 
total=[%s], used=[%s], threshold=[%s%%].", imageStoreId, readableTotalCapacity, 
readableUsedCapacity, threshold * 100));
+        logger.debug(String.format("Verifying image storage [%s]. Capacity: 
total=[%s], used=[%s], threshold=[%.2f%%].", imageStoreId, 
readableTotalCapacity, readableUsedCapacity, threshold * 100));

Review Comment:
   Changed in the latest commit 



-- 
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: commits-unsubscr...@cloudstack.apache.org

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

Reply via email to