Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Merge pull request #341 from Jiri-Kremser/overriding-eval
Browse files Browse the repository at this point in the history
Fixing the gulp build (Invalid use of 'eval')
  • Loading branch information
mtho11 committed Jul 20, 2015
2 parents dd08c3c + 43914e8 commit 8bd1364
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions console/src/main/scripts/plugins/metrics/ts/alertsManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,18 +290,18 @@ module HawkularMetrics {
var count: number = 0.0;

for (var j = 0; j < serverAlert.evalSets.length; j++) {
var eval = serverAlert.evalSets[j][0];
var evalItem = serverAlert.evalSets[j][0];

if (!consoleAlert.start && eval.dataTimestamp) {
consoleAlert.start = eval.dataTimestamp;
if (!consoleAlert.start && evalItem.dataTimestamp) {
consoleAlert.start = evalItem.dataTimestamp;
}

if (!consoleAlert.threshold && eval.condition.threshold) {
consoleAlert.threshold = eval.condition.threshold;
if (!consoleAlert.threshold && evalItem.condition.threshold) {
consoleAlert.threshold = evalItem.condition.threshold;
}

if (!consoleAlert.type && eval.condition.type) {
consoleAlert.type = eval.condition.type;
if (!consoleAlert.type && evalItem.condition.type) {
consoleAlert.type = evalItem.condition.type;
}

var momentAlert = this.$moment(consoleAlert.end);
Expand All @@ -313,7 +313,7 @@ module HawkularMetrics {
}
}

sum += eval.value;
sum += evalItem.value;
count++;
}

Expand Down

0 comments on commit 8bd1364

Please sign in to comment.