Skip to content

Commit

Permalink
Fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
bondib authored Sep 28, 2016
1 parent 6f61320 commit 269e7d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/traffic_light_vis_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ define(function (require) {
metrics.push({
label: column.title,
value: metricValue,
isRedLightOn: (!params.invertScale && metricValue <= params.redThreshold) || (params.invertScale && metricValue.value >= params.redThreshold),
isRedLightOn: (!params.invertScale && metricValue <= params.redThreshold) || (params.invertScale && metricValue >= params.redThreshold),
isYellowOn: (!params.invertScale && metricValue > params.redThreshold && metricValue < params.greenThreshold) || (params.invertScale && metricValue < params.redThreshold && metricValue > params.greenThreshold),
isGreenOn: (params.redAndGreenOnly && ((!params.invertScale && metricValue > params.redThreshold) || (params.invertScale && metricValue < params.redThreshold))) ||
(!params.redAndGreenOnly && ((!params.invertScale && metricValue >= params.greenThreshold) || (params.invertScale && metricValue <= params.greenThreshold)))
Expand Down

0 comments on commit 269e7d3

Please sign in to comment.