mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-17 16:56:15 +10:00
[임대현] #47 serverMap 필터맵에서 node histogram merge 안되어 있음
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-web/trunk@3343 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
@@ -228,6 +228,15 @@ pinpointApp.service('ServerMapDao', [ 'serverMapDaoConfig', function ServerMapDa
|
||||
* @returns {*}
|
||||
*/
|
||||
this.mergeNodeData = function (htLastMapData, nodeKey, node) {
|
||||
for (var key in node.histogram) {
|
||||
if (htLastMapData.applicationMapData.nodeDataArray[nodeKey].histogram) {
|
||||
if (htLastMapData.applicationMapData.nodeDataArray[nodeKey].histogram[key]) {
|
||||
htLastMapData.applicationMapData.nodeDataArray[nodeKey].histogram[key] += node.histogram[key];
|
||||
} else {
|
||||
htLastMapData.applicationMapData.nodeDataArray[nodeKey].histogram[key] = node.histogram[key];
|
||||
}
|
||||
}
|
||||
}
|
||||
for (var key in node.serverList) {
|
||||
if (htLastMapData.applicationMapData.nodeDataArray[nodeKey].serverList[key]) {
|
||||
for (var innerKey in node.serverList[key].instanceList) {
|
||||
|
||||
Reference in New Issue
Block a user