Explorar o código

Update check_mrtgtraf.c

Outgoing percentage was reported as incoming percentage.
rob2791 %!s(int64=4) %!d(string=hai) anos
pai
achega
cc69a80369
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      plugins/check_mrtgtraf.c

+ 1 - 1
plugins/check_mrtgtraf.c

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