rename variable to avoid name conflict

This commit is contained in:
Girish Ramakrishnan
2020-05-22 14:52:23 -07:00
parent ca573dec91
commit 4260082726
+2 -2
View File
@@ -629,7 +629,7 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
return ('0' + dateTime.getHours()).slice(-2) + ':' + ('0' + dateTime.getMinutes()).slice(-2);
});
var data = {
var graphData = {
labels: labels,
datasets: [{
label: label,
@@ -664,7 +664,7 @@ angular.module('Application').controller('AppController', ['$scope', '$location'
var ctx = $(canvasId).get(0).getContext('2d');
if ($scope.graphs[chartPropertyName]) $scope.graphs[chartPropertyName].destroy();
$scope.graphs[chartPropertyName] = new Chart(ctx, { type: 'line', data: data, options: options });
$scope.graphs[chartPropertyName] = new Chart(ctx, { type: 'line', data: graphData, options: options });
}
var memoryQuery = 'summarize(sum(collectd.localhost.table-' + appId + '-memory.gauge-rss, collectd.localhost.table-' + appId + '-memory.gauge-swap), "' + timeBucketSize + 'min", "avg")';