Quellcode durchsuchen

Merge branch 'rob2791-patch-1'

Sebastian Wolf vor 2 Jahren
Ursprung
Commit
4a68f7b8a5
3 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  1. 1 0
      NEWS
  2. 1 0
      THANKS.in
  3. 1 1
      plugins/check_mrtgtraf.c

+ 1 - 0
NEWS

@@ -3,6 +3,7 @@ This file documents the major additions and syntax changes between releases.
 2.4.4 2023-04-??
 	FIXES
 	check_log: improve file readability test to accommodate CAP_DAC_READ_SEARCH and similar (#604)
+	check_mrtgtraf: fix incorrect out_pct performance data metric (#600)
 
 2.4.3 2022-01-17
 	FIXES

+ 1 - 0
THANKS.in

@@ -340,6 +340,7 @@ Richard Leitner
 Richard Mayhew
 Rick Frey
 Rob Windsor
+rob2791
 Robby Giffin
 Robert August Vincent
 Robert Dale

+ 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,