Explorar el Código

Update check_mrtgtraf.c

Outgoing percentage was reported as incoming percentage.
rob2791 hace 4 años
padre
commit
cc69a80369
Se han modificado 1 ficheros con 1 adiciones y 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));
 	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,