nagios-plugins-contrib/sort_results.patch
changeset 35 00eb34bfe348
parent 34 87b508932fa3
--- a/nagios-plugins-contrib/sort_results.patch	Fri Oct 27 11:56:51 2017 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,46 +0,0 @@
---- a/check_lm_sensors/src/check_lm_sensors
-+++ b/check_lm_sensors/src/check_lm_sensors
-@@ -501,8 +501,9 @@ if ($sensors) {
- # perform checks
- 
- # old style checks
--while ( ( $name, $limits ) = each %checks ) {
-+for $name ( sort keys %checks ) {
- 
-+    $limits = $checks{$name};
-     $converted_name = $name;
-     $converted_name =~ s/_/\ /gmx;
- 
-@@ -541,8 +542,9 @@ while ( ( $name, $limits ) = each %checks ) {
- }
- 
- # lows
--while ( ( $name, $limits ) = each %lows ) {
-+for $name ( sort keys %lows ) {
- 
-+    $limits = $lows{$name};
-     $converted_name = $name;
-     $converted_name =~ s/_/\ /gmx;
- 
-@@ -575,8 +577,9 @@ while ( ( $name, $limits ) = each %lows ) {
- }
- 
- # highs
--while ( ( $name, $limits ) = each %highs ) {
-+for $name ( sort keys %highs ) {
- 
-+    $limits = $highs{$name};
-     $converted_name = $name;
-     $converted_name =~ s/_/\ /gmx;
- 
-@@ -610,8 +613,9 @@ while ( ( $name, $limits ) = each %highs ) {
- }
- 
- # ranges
--while ( ( $name, $limits ) = each %ranges ) {
-+for $name ( sort keys %ranges ) {
- 
-+    $limits = $ranges{$name};
-     $converted_name = $name;
-     $converted_name =~ s/_/\ /gmx;
-