mirror of
https://github.com/didi/KnowStreaming.git
synced 2026-01-09 16:32:07 +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.setBytesInPerSec(topicMetrics.getBytesInPerSec());
|
||||||
topicOverviewDTO.setProduceRequestPerSec(topicMetrics.getTotalProduceRequestsPerSec());
|
topicOverviewDTO.setProduceRequestPerSec(topicMetrics.getTotalProduceRequestsPerSec());
|
||||||
} else {
|
} else {
|
||||||
// topicMetrics = jmxService.getSpecifiedTopicMetricsFromJmx(clusterId, topicName, TopicMetrics.getFieldNameList(MetricsType.TOPIC_FLOW_DETAIL), true);
|
topicMetrics = jmxService.getSpecifiedTopicMetricsFromJmx(clusterId, topicName, TopicMetrics.getFieldNameList(MetricsType.TOPIC_FLOW_DETAIL), true);
|
||||||
topicOverviewDTO.setBytesInPerSec(0.0);
|
topicOverviewDTO.setBytesInPerSec(topicMetrics.getBytesInPerSec());
|
||||||
topicOverviewDTO.setProduceRequestPerSec(0.0);
|
topicOverviewDTO.setProduceRequestPerSec(topicMetrics.getBytesOutPerSec());
|
||||||
}
|
}
|
||||||
return topicOverviewDTO;
|
return topicOverviewDTO;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user