smiklosovic commented on code in PR #4551:
URL: https://github.com/apache/cassandra/pull/4551#discussion_r2704371506


##########
src/java/org/apache/cassandra/tools/nodetool/CompactionStats.java:
##########
@@ -162,9 +181,22 @@ public static void 
reportCompactionTable(List<Map<String,String>> compactions, l
         }
 
         String remainingTime = "n/a";
-        if (compactionThroughputInBytes != 0)
+        long throughputInBytes = 0;
+        
+        // Use current compaction throughput (1 minute) if available and > 0, 
otherwise fall back to configured throughput
+        if (currentCompactionThroughputMiBPerSec != null && 
currentCompactionThroughputMiBPerSec > 0)

Review Comment:
   `if (currentCompactionThroughputBytesPerSec > 0)`



-- 
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