1 --- a/check_lm_sensors/src/check_lm_sensors |
|
2 +++ b/check_lm_sensors/src/check_lm_sensors |
|
3 @@ -501,8 +501,9 @@ if ($sensors) { |
|
4 # perform checks |
|
5 |
|
6 # old style checks |
|
7 -while ( ( $name, $limits ) = each %checks ) { |
|
8 +for $name ( sort keys %checks ) { |
|
9 |
|
10 + $limits = $checks{$name}; |
|
11 $converted_name = $name; |
|
12 $converted_name =~ s/_/\ /gmx; |
|
13 |
|
14 @@ -541,8 +542,9 @@ while ( ( $name, $limits ) = each %checks ) { |
|
15 } |
|
16 |
|
17 # lows |
|
18 -while ( ( $name, $limits ) = each %lows ) { |
|
19 +for $name ( sort keys %lows ) { |
|
20 |
|
21 + $limits = $lows{$name}; |
|
22 $converted_name = $name; |
|
23 $converted_name =~ s/_/\ /gmx; |
|
24 |
|
25 @@ -575,8 +577,9 @@ while ( ( $name, $limits ) = each %lows ) { |
|
26 } |
|
27 |
|
28 # highs |
|
29 -while ( ( $name, $limits ) = each %highs ) { |
|
30 +for $name ( sort keys %highs ) { |
|
31 |
|
32 + $limits = $highs{$name}; |
|
33 $converted_name = $name; |
|
34 $converted_name =~ s/_/\ /gmx; |
|
35 |
|
36 @@ -610,8 +613,9 @@ while ( ( $name, $limits ) = each %highs ) { |
|
37 } |
|
38 |
|
39 # ranges |
|
40 -while ( ( $name, $limits ) = each %ranges ) { |
|
41 +for $name ( sort keys %ranges ) { |
|
42 |
|
43 + $limits = $ranges{$name}; |
|
44 $converted_name = $name; |
|
45 $converted_name =~ s/_/\ /gmx; |
|
46 |
|