Permalink
Browse files

fix thresholds, noticed by @asenchi

  • Loading branch information...
1 parent e7425c3 commit 35ca40b867faa266ec421d771249b94c11bb698b @obfuscurity committed May 30, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 public/j/tasseo.js
View
@@ -70,17 +70,17 @@ function refreshData(immediately) {
var warning = realMetrics[i].warning;
var critical = realMetrics[i].critical;
if (critical > warning) {
- if (lastValue > critical) {
+ if (lastValue >= critical) {
graphs[i].series[0].color = '#d59295';
- } else if (lastValue > warning) {
+ } else if (lastValue >= warning) {
graphs[i].series[0].color = '#f5cb56';
} else {
graphs[i].series[0].color = '#afdab1';
}
} else {
- if (lastValue < critical) {
+ if (lastValue <= critical) {
graphs[i].series[0].color = '#d59295';
- } else if (lastValue < warning) {
+ } else if (lastValue <= warning) {
graphs[i].series[0].color = '#f5cb56';
} else {
graphs[i].series[0].color = '#afdab1';

0 comments on commit 35ca40b

Please sign in to comment.