sreejasahithi commented on code in PR #8520:
URL: https://github.com/apache/ozone/pull/8520#discussion_r2198156117


##########
hadoop-ozone/cli-admin/src/main/java/org/apache/hadoop/hdds/scm/cli/datanode/ListInfoSubcommand.java:
##########
@@ -177,12 +222,23 @@ private void printDatanodeInfo(DatanodeWithAttributes 
dna) {
     System.out.println("Operational State: " + dna.getOpState());
     System.out.println("Health State: " + dna.getHealthState());
     System.out.println("Related pipelines:\n" + pipelineListInfo);
+
+    if (dna.getUsed() != null && dna.getCapacity() != null && dna.getUsed() >= 
0 && dna.getCapacity() > 0) {
+      System.out.println("Used: " + dna.getUsed());
+      System.out.println("Capacity: " + dna.getCapacity() + "\n");

Review Comment:
   Added print statements for all three capacity, used and percentage used.



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

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to