Author: glen                         Date: Fri Oct 16 19:02:58 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- sort results by controller number

---- Files affected:
packages/nagios-plugin-check_raid:
   check_raid (1.58 -> 1.59) 

---- Diffs:

================================================================
Index: packages/nagios-plugin-check_raid/check_raid
diff -u packages/nagios-plugin-check_raid/check_raid:1.58 
packages/nagios-plugin-check_raid/check_raid:1.59
--- packages/nagios-plugin-check_raid/check_raid:1.58   Fri Oct 16 15:34:51 2009
+++ packages/nagios-plugin-check_raid/check_raid        Fri Oct 16 21:02:50 2009
@@ -864,7 +864,8 @@
        }
        $modem->close();
 
-       while (my($c, $s) = each %c) {
+       foreach $c (sort { $a cmp $b } keys %c) {
+               my $s = $c{$c};
                $s = join(', ', @$s);
                $s = 'OK' unless $s;
                push(@status, "$c: $s");
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/nagios-plugin-check_raid/check_raid?r1=1.58&r2=1.59&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to