bugfix, fix topic overview page

This commit is contained in:
zengqiao
2020-09-17 19:04:33 +08:00
parent dd2e29dd40
commit c23870e020

View File

@@ -343,9 +343,9 @@ public class TopicServiceImpl implements TopicService {
topicOverviewDTO.setBytesInPerSec(topicMetrics.getBytesInPerSec());
topicOverviewDTO.setProduceRequestPerSec(topicMetrics.getTotalProduceRequestsPerSec());
} else {
// topicMetrics = jmxService.getSpecifiedTopicMetricsFromJmx(clusterId, topicName, TopicMetrics.getFieldNameList(MetricsType.TOPIC_FLOW_DETAIL), true);
topicOverviewDTO.setBytesInPerSec(0.0);
topicOverviewDTO.setProduceRequestPerSec(0.0);
topicMetrics = jmxService.getSpecifiedTopicMetricsFromJmx(clusterId, topicName, TopicMetrics.getFieldNameList(MetricsType.TOPIC_FLOW_DETAIL), true);
topicOverviewDTO.setBytesInPerSec(topicMetrics.getBytesInPerSec());
topicOverviewDTO.setProduceRequestPerSec(topicMetrics.getBytesOutPerSec());
}
return topicOverviewDTO;
}