aboutsummaryrefslogtreecommitdiffstats
path: root/agesinceseen-summary
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2007-11-23 20:46:13 +0000
committerPetter Reinholdtsen <pere@hungry.com>2007-11-23 20:46:13 +0000
commitbee4f08184f47f860e32df6bc1f4c0328753e8c8 (patch)
tree95e95f4d8e32fb637a9a4a512d40b74b9270cdb5 /agesinceseen-summary
parent59cf5402f37fc0fff3a9b41e3c7cc754ba3bfb04 (diff)
downloadsitesummary-bee4f08184f47f860e32df6bc1f4c0328753e8c8.tar.gz
sitesummary-bee4f08184f47f860e32df6bc1f4c0328753e8c8.tar.bz2
sitesummary-bee4f08184f47f860e32df6bc1f4c0328753e8c8.tar.xz
Make sure the list of hosts is stable.
Diffstat (limited to 'agesinceseen-summary')
-rw-r--r--agesinceseen-summary2
1 files changed, 1 insertions, 1 deletions
diff --git a/agesinceseen-summary b/agesinceseen-summary
index 4bfed75..eac1b82 100644
--- a/agesinceseen-summary
+++ b/agesinceseen-summary
@@ -58,7 +58,7 @@ sub print_summary {
for my $group (sort { $a <=> $b; } keys %agedist) {
printf(" %-20s %5d\n", $agegroup{$group}, scalar @{$agedist{$group}});
if (exists $opts{l}) {
- for my $hostid (@{$agedist{$group}}) {
+ for my $hostid (sort @{$agedist{$group}}) {
my $hostname = get_hostname($hostid);
my $site = get_site($hostid) || "";
my $sitegroup = get_sitegroup($hostid) || "";