Copilot commented on code in PR #896:
URL: 
https://github.com/apache/rocketmq-dashboard/pull/896#discussion_r3708597288


##########
server/src/main/java/org/apache/rocketmq/studio/rocketmq/RocketMQClusterProvider.java:
##########
@@ -218,7 +218,7 @@ private void 
enrichBrokerWithRuntimeInfo(BrokerVO.BrokerVOBuilder builder, Strin
      */
     private int parseFirstTpsValue(String tpsStr) {
         try {
-            String[] parts = tpsStr.split(" ");
+            String[] parts = tpsStr.trim().split("\\s+");

Review Comment:
   The Javadoc still says TPS stats are "space-separated", but the 
implementation now trims and splits on one-or-more whitespace (\\s+). Updating 
the comment keeps documentation aligned with behavior and the bug fix scope 
(tabs/multiple spaces).



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

Reply via email to