Skip to content

Commit

Permalink
bug fix.
Browse files Browse the repository at this point in the history
 - wrong sum of request in scatter-chart.
	- analytics send bug.
  • Loading branch information
denzelsN committed Oct 17, 2016
1 parent 6e0ca8b commit c537c77
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion web/src/main/webapp/common/services/analytics.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
pinpointApp.service( "AnalyticsService", [ "globalConfig", function ( globalConfig) {
if ( typeof ga !== "undefined" ) {
this.send = function( category, name, label, count, options ) {
if ( globalConfig.sendAllowed === false ) return;
if ( globalConfig.sendUsage !== true ) return;
if ( arguments.length == 1 ) {
ga( "send", "pageview", arguments[0] );
} else {
Expand Down
18 changes: 11 additions & 7 deletions web/src/main/webapp/features/scatter/scatter.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,17 @@
htScatterSet = {};
}
function getAgentList( scatterData ) {
var aAgentList = [], server;
if ( typeof scatterData !== "undefined" ) {
$.each( scatterData.scatter.metadata, function( key, oInfo ) {
aAgentList.push( oInfo[0] );
});
return aAgentList;
}
var oDupCheck = {};
var aAgentList = [], server;
if ( typeof scatterData !== "undefined" ) {
$.each( scatterData.scatter.metadata, function( key, oInfo ) {
if ( typeof oDupCheck[ oInfo[0] ] === "undefined" ) {
oDupCheck[ oInfo[0] ] = true;
aAgentList.push( oInfo[0] );
}
});
return aAgentList;
}
if ( htLastNode.agentList ) {
return htLastNode.agentList;
}
Expand Down

0 comments on commit c537c77

Please # to comment.