Просмотр исходного кода

Merge branch 'maint' of https://github.com/nagios-plugins/nagios-plugins into maint

abrist 12 лет назад
Родитель
Сommit
de2a107da9
2 измененных файлов с 4 добавлено и 3 удалено
  1. 1 0
      THANKS.in
  2. 3 3
      plugins/check_ide_smart.c

+ 1 - 0
THANKS.in

@@ -305,3 +305,4 @@ Tim Laszlo
 Patric Wust
 Oskar Liljeblad
 Geoff Oakham
+Tilmann Bubeck

+ 3 - 3
plugins/check_ide_smart.c

@@ -369,7 +369,7 @@ values_not_passed (values_t * p, thresholds_t * t)
 	int i;
 	for (i = 0; i < NR_ATTRIBUTES; i++) {
 		if (value->id && threshold->id && value->id == threshold->id) {
-			if (value->value <= threshold->threshold) {
+			if (value->value < threshold->threshold) {
 				++failed;
 			}
 			else {
@@ -398,7 +398,7 @@ nagios (values_t * p, thresholds_t * t)
 	int i;
 	for (i = 0; i < NR_ATTRIBUTES; i++) {
 		if (value->id && threshold->id && value->id == threshold->id) {
-			if (value->value <= threshold->threshold) {
+			if (value->value < threshold->threshold) {
 				++failed;
 				if (value->status & 1) {
 					status = PREFAILURE;
@@ -455,7 +455,7 @@ print_value (value_t * p, threshold_t * t)
 	printf ("Id=%3d, Status=%2d {%s , %s}, Value=%3d, Threshold=%3d, %s\n",
 					p->id, p->status, p->status & 1 ? "PreFailure" : "Advisory   ",
 					p->status & 2 ? "OnLine " : "OffLine", p->value, t->threshold,
-					p->value > t->threshold ? "Passed" : "Failed");
+					p->value >= t->threshold ? "Passed" : "Failed");
 }