mirror of
https://github.com/didi/KnowStreaming.git
synced 2025-12-24 11:52:08 +08:00
bugfix, fix topic overview page
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user