Sort the UUIDs so that dom0 appears first
authorQuentin Smith <quentin@mit.edu>
Sat, 31 Jan 2009 12:15:45 +0000 (07:15 -0500)
committerQuentin Smith <quentin@mit.edu>
Sat, 31 Jan 2009 12:15:45 +0000 (07:15 -0500)
svn path=/trunk/scripts/munin/; revision=2059

web/all-usage.cgi

index c1817bd..20d5eb4 100755 (executable)
@@ -60,7 +60,7 @@ my @COLOUR = ("#22ff22", "#0022ff", "#ff0000", "#00aaaa", "#ff00ff",
               "#0080FF", "#FF8000", "#800000", "#FB31FB");
 my $color_index = 0;
 
               "#0080FF", "#FF8000", "#800000", "#FB31FB");
 my $color_index = 0;
 
-foreach my $uuid (keys %uuids) {
+foreach my $uuid (sort keys %uuids) {
   my @uuid_files = grep { m|$uuid-.\.rrd$| } @files;
   foreach my $i (0..$#uuid_files) {
     $uuid_files[$i] =~ m|^([^:]+)$|;
   my @uuid_files = grep { m|$uuid-.\.rrd$| } @files;
   foreach my $i (0..$#uuid_files) {
     $uuid_files[$i] =~ m|^([^:]+)$|;