4
0
Эх сурвалжийг харах

Make sure to process numeric calculations whenever --multiplier is manually set

madlohe 4 жил өмнө
parent
commit
619366f326

+ 1 - 1
plugins/check_snmp.c

@@ -495,7 +495,7 @@ main (int argc, char **argv)
 
 
 		/* Process this block for numeric comparisons */
 		/* Process this block for numeric comparisons */
 		/* Make some special values,like Timeticks numeric only if a threshold is defined */
 		/* Make some special values,like Timeticks numeric only if a threshold is defined */
-		if (thlds[i]->warning || thlds[i]->critical || calculate_rate || is_ticks || offset != 0.0) {
+		if (thlds[i]->warning || thlds[i]->critical || calculate_rate || is_ticks || offset != 0.0 || multiplier != 1.0) {
 			ptr = strpbrk (show, "-0123456789");
 			ptr = strpbrk (show, "-0123456789");
 
 
 			if (ptr == NULL)
 			if (ptr == NULL)