Skip to content

Commit 0d382df

Browse files
author
Alexei Zverev
committed
Remove debugging code; enable automatic TE computation
1 parent 7e38d2f commit 0d382df

2 files changed

Lines changed: 3 additions & 13 deletions

File tree

client-src/pathman_sr/src/app/controllers/path-setup.controller.js

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
$scope.countTotalByMetrics = countTotalByMetrics;
1818

1919
$scope.HelpersService = HelpersService;
20-
$scope.validCostMetrics = ['igp', 'hops'];
20+
$scope.validCostMetrics = ['igp', 'hops', 'te'];
2121
$scope.autoPathFormLoadingStatus = false;
2222
$scope.computedPaths = [];
2323
$scope.computedMetrics = [];
@@ -79,10 +79,6 @@
7979

8080
metricType = $scope.manualPathMetrics[lastIndex - 1].type;
8181

82-
console.log(metricType, $scope.manualPathMetricsTotal[metricName],
83-
$scope.manualPathMetrics[lastIndex - 1],
84-
$scope.manualPathMetrics[lastIndex - 1].metric[metricName][metricType]);
85-
8682
$scope.manualPathMetricsTotal[metricName] =
8783
$scope.manualPathMetricsTotal[metricName] - $scope.manualPathMetrics[lastIndex - 1].metric[metricName][metricType];
8884

@@ -91,9 +87,6 @@
9187

9288
$scope.manualPath.splice(lastIndex, 1);
9389
$scope.manualPathMetrics.splice(lastIndex - 1);
94-
95-
console.log("last", $scope.manualPathMetricsTotal, $scope.manualPathMetrics);
96-
9790
}
9891

9992
// intermediate
@@ -111,8 +104,7 @@
111104

112105
for ( metricName in metric.metric) {
113106
if( metric.metric.hasOwnProperty( metricName ) ) {
114-
console.log("metricName", metricName);
115-
console.log("metricType", metricType);
107+
116108
metricType = metric.type;
117109

118110
$scope.manualPathMetricsTotal[metricName] =
@@ -121,7 +113,6 @@
121113
}
122114
}
123115

124-
console.log(metric);
125116
});
126117

127118
}
@@ -259,7 +250,6 @@
259250

260251
// when a user is updating the path
261252
if(SharedDataService.data.pathSetupUpdateData.mode == "update"){
262-
console.log(SharedDataService.data.pathSetupUpdateData);
263253

264254
$scope.psForm = {
265255
"source": SharedDataService.data.pathSetupUpdateData.pathDetails.source,

0 commit comments

Comments
 (0)