From: Quentin Smith Date: Sat, 31 Jan 2009 12:15:45 +0000 (-0500) Subject: Sort the UUIDs so that dom0 appears first X-Git-Url: http://xvm.mit.edu/gitweb/invirt/scripts/munin.git/commitdiff_plain/fffa6ac25f2492ddcc4e1ab8d7e46ec656bb6932?hp=77a4feb0b798195be46bb46bb82132e2299686c2 Sort the UUIDs so that dom0 appears first svn path=/trunk/scripts/munin/; revision=2059 --- diff --git a/web/all-usage.cgi b/web/all-usage.cgi index c1817bd..20d5eb4 100755 --- a/web/all-usage.cgi +++ b/web/all-usage.cgi @@ -60,7 +60,7 @@ my @COLOUR = ("#22ff22", "#0022ff", "#ff0000", "#00aaaa", "#ff00ff", "#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|^([^:]+)$|;