Explorar o código

Merge branch 'patch-1' of https://github.com/rob2791/nagios-plugins into rob2791-patch-1

Sebastian Wolf %!s(int64=3) %!d(string=hai) anos
pai
achega
1f4a9c9647
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));
 	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,