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

Update check_mrtgtraf.c

Outgoing percentage was reported as incoming percentage.
rob2791 4 жил өмнө
parent
commit
cc69a80369

+ 1 - 1
plugins/check_mrtgtraf.c

@@ -222,7 +222,7 @@ main (int argc, char **argv)
 	                   TRUE, 0, FALSE, 0));
 	if (max_interface_bandwidth) {
 		incoming_percent = (incoming_rate * 100.0) / (double)max_interface_bandwidth;
-		outgoing_percent = (incoming_rate * 100.0) / (double)max_interface_bandwidth;
+		outgoing_percent = (outgoing_rate * 100.0) / (double)max_interface_bandwidth;
 		xasprintf(&error_message, "%s %s %s", error_message,
 			fperfdata("in_pct", incoming_percent, "%",
 					 FALSE, 0.0, FALSE, 0.0,