Merge pull request #357 from denzelsN/1.0.x

bug fix
This commit is contained in:
denzelsN
2015-04-22 14:48:17 +09:00
2 changed files with 8 additions and 12 deletions
@@ -481,16 +481,14 @@ pinpointApp.service('ServerMapDao', [ 'serverMapDaoConfig', function ServerMapDa
var targetNodeCount = 0;
links.forEach(function (link, linkIndex) {
if (link.from == node.key &&
link.targetInfo.serviceType == mergeType &&
inboundCountMap[link.to] && inboundCountMap[link.to].toCount == 1) {
if (link.from == node.key && link.targetInfo.serviceType == mergeType && inboundCountMap[link.to] && inboundCountMap[link.to].toCount == 1) {
targetNodeCount++;
}
});
if (targetNodeCount < 2) {
return;
}
links.forEach(function (link, linkIndex) {
if (link.targetInfo.serviceType != mergeType) {
return;
@@ -506,8 +504,7 @@ pinpointApp.service('ServerMapDao', [ 'serverMapDaoConfig', function ServerMapDa
if (!newLink) {
newLink = self._createNewLink( node.key, newNodeKey );
}
self._addToSubNode( newNode, self._getNodeByApplicationName(nodes, link.targetInfo.applicationName), function() {} );
self._addToSubNode( newNode, self._getNodeByApplicationName(nodes, link.targetInfo.applicationName, mergeType ), function() {} );
self._mergeLinkData( newLink, link );
newLink.unknownLinkGroup.push(link);
@@ -650,7 +647,6 @@ pinpointApp.service('ServerMapDao', [ 'serverMapDaoConfig', function ServerMapDa
newLinks.push( self._createNewLink( fromNodeArrayOfInner[i], newNodeKey ) );
}
}
self._addToSubNode( newNode, innerNode, function( innerNodeKey ) {
removeNodeIdSet[innerNodeKey] = null;
});
@@ -826,9 +822,9 @@ pinpointApp.service('ServerMapDao', [ 'serverMapDaoConfig', function ServerMapDa
newLink.hasAlert = oldLink.hasAlert;
}
};
this._getNodeByApplicationName = function( nodes, applicationName) {
this._getNodeByApplicationName = function( nodes, applicationName, mergeType ) {
for(var k in nodes) {
if (applicationName === nodes[k].applicationName) {
if (applicationName === nodes[k].applicationName && mergeType === nodes[k].serviceType ) {
return nodes[k];
}
}
+3 -3
View File
@@ -1,8 +1,8 @@
.timeslider .timeslider_wrapper {
position:absolute;
top:-4px;
left:350px;
right:20px;
top:-2px;
left:340px;
right:30px;
}
.timeslider .jslider .jslider-value {
top: 12px;